autotest: reduce race condition in fly_square mission

We end up where we started, so when we start to play the mission back we
might immediately be at the first waypoint.  That's a problem as we may
never see the NAV_CONTROLLER_OUTPUT mention waypoint 1 and thus we
fail the test
This commit is contained in:
Peter Barker 2021-03-24 20:55:03 +11:00 committed by Peter Barker
parent 240e2d6b28
commit e2a350f12e

View File

@ -323,7 +323,7 @@ class AutoTestCopter(AutoTest):
# fly a square in alt_hold mode
def fly_square(self, side=50, timeout=300):
self.takeoff(10, mode="ALT_HOLD")
self.takeoff(20, mode="ALT_HOLD")
"""Fly a square, flying N then E ."""
tstart = self.get_sim_time()