Browse Source

autotest: use slightly faster recv_msg call in drain_mav

Cuts out some code in pymavlink's recv_match which we don't need here.  We even explicitly don't run the idle hooks which pymavlink supplied when we're running under drain_mav
apm_2208
Peter Barker 3 years ago committed by Peter Barker
parent
commit
bc12a61c9a
  1. 2
      Tools/autotest/common.py

2
Tools/autotest/common.py

@ -2731,7 +2731,7 @@ class AutoTest(ABC): @@ -2731,7 +2731,7 @@ class AutoTest(ABC):
tstart = time.time()
timeout = 120
failed_to_drain = False
while mav.recv_match(blocking=False) is not None:
while mav.recv_msg() is not None:
count += 1
if time.time() - tstart > timeout:
# ArduPilot can produce messages faster than we can

Loading…
Cancel
Save