mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 01:23:56 -03:00
Tools: autotest: wait for any message on link before requesting mission count
This commit is contained in:
parent
1b533295a8
commit
d68e8f4cfb
@ -1139,6 +1139,11 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
|
|||||||
print("spgti: %s" % str(sptgi))
|
print("spgti: %s" % str(sptgi))
|
||||||
|
|
||||||
def assert_mission_count_on_link(self, mav, expected_count, target_system, target_component, mission_type):
|
def assert_mission_count_on_link(self, mav, expected_count, target_system, target_component, mission_type):
|
||||||
|
self.drain_mav(mav)
|
||||||
|
self.progress("waiting for a message - any message....")
|
||||||
|
m = mav.recv_match(blocking=True, timeout=1)
|
||||||
|
self.progress("Received (%s)" % str(m))
|
||||||
|
|
||||||
if not mav.mavlink20():
|
if not mav.mavlink20():
|
||||||
raise NotAchievedException("Not doing mavlink2")
|
raise NotAchievedException("Not doing mavlink2")
|
||||||
tstart = self.get_sim_time()
|
tstart = self.get_sim_time()
|
||||||
|
Loading…
Reference in New Issue
Block a user