mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
autotest: wait for heartbeat before determining armed state
Fixes a race condition when finishing a mission where we may receive the disarmed text but the most recent heartbeat says we are armed.
This commit is contained in:
parent
0e9abea655
commit
267c16cd72
@ -4465,6 +4465,7 @@ class AutoTest(ABC):
|
||||
|
||||
def armed(self):
|
||||
"""Return true if vehicle is armed and safetyoff"""
|
||||
self.wait_heartbeat()
|
||||
return self.mav.motors_armed()
|
||||
|
||||
def send_mavlink_arm_command(self):
|
||||
|
Loading…
Reference in New Issue
Block a user