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 Andrew Tridgell
parent 472d18d07a
commit c5822e1557

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