autotest: drain mav before attempting disarm

If the queue of messages for us to parse is very long then we can time
out before managing to parse them all and find the disarm!
This commit is contained in:
Peter Barker 2019-10-15 16:46:05 +11:00 committed by Randy Mackay
parent 03c68f991c
commit d2cf0939a5
1 changed files with 1 additions and 0 deletions

View File

@ -1088,6 +1088,7 @@ class AutoTest(ABC):
def disarm_vehicle(self, timeout=60, force=False):
"""Disarm vehicle with mavlink disarm message."""
self.progress("Disarm motors with MAVLink cmd")
self.drain_mav_unparsed()
p2 = 0
if force:
p2 = 21196 # magic force disarm value