autotest: drain mav before delay

We're seeing suspiciously low wall-clock delays.
This commit is contained in:
Peter Barker 2020-05-17 11:02:25 +10:00 committed by Peter Barker
parent 97f335396b
commit d51d6752e5

View File

@ -3001,6 +3001,7 @@ class AutoTest(ABC):
#################################################
def delay_sim_time(self, seconds_to_wait):
"""Wait some second in SITL time."""
self.drain_mav_unparsed()
tstart = self.get_sim_time()
tnow = tstart
self.progress("Delaying %f seconds" % (seconds_to_wait,))