Tools: autotest: drain mav either side of initialising-after-reboot
This commit is contained in:
parent
fcff818a23
commit
65d0443c26
@ -303,12 +303,14 @@ class AutoTest(ABC):
|
|||||||
if streamrate <= 0:
|
if streamrate <= 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.drain_mav()
|
||||||
m = self.mav.recv_match(type='SYSTEM_TIME',
|
m = self.mav.recv_match(type='SYSTEM_TIME',
|
||||||
blocking=True,
|
blocking=True,
|
||||||
timeout=10)
|
timeout=10)
|
||||||
print("Received (%s)" % str(m))
|
print("Received (%s)" % str(m))
|
||||||
if m is None:
|
if m is None:
|
||||||
raise NotAchievedException("Did not get SYSTEM_TIME")
|
raise NotAchievedException("Did not get SYSTEM_TIME")
|
||||||
|
self.drain_mav()
|
||||||
|
|
||||||
def initialise_after_reboot_sitl(self):
|
def initialise_after_reboot_sitl(self):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user