Browse Source

autotest: fix race condition in need-ekf-to-arm check

At extreme speedups we may not detect the reboot in the Python before the autopilot is ready to arm...
apm_2208
Peter Barker 3 years ago committed by Peter Barker
parent
commit
7120d4f750
  1. 3
      Tools/autotest/arduplane.py

3
Tools/autotest/arduplane.py

@ -163,8 +163,9 @@ class AutoTestPlane(AutoTest): @@ -163,8 +163,9 @@ class AutoTestPlane(AutoTest):
def test_need_ekf_to_arm(self):
"""Loiter where we are."""
self.progress("Ensuring we need EKF to be healthy to arm")
self.reboot_sitl()
self.wait_ready_to_arm()
self.context_collect("STATUSTEXT")
self.reboot_sitl()
tstart = self.get_sim_time()
success = False
while not success:

Loading…
Cancel
Save