autotest: fix fly_square mission

waypoint doesn't change until mission is running
This commit is contained in:
Peter Barker 2021-03-12 15:37:46 +11:00 committed by Peter Barker
parent 42eec13f5e
commit 120167f799

View File

@ -407,8 +407,8 @@ class AutoTestCopter(AutoTest):
self.progress("save_mission_to_file failed")
self.progress("test: Fly a mission from 1 to %u" % num_wp)
self.set_current_waypoint(1)
self.change_mode('AUTO')
self.set_current_waypoint(1)
self.wait_waypoint(0, num_wp-1, timeout=500)
self.progress("test: MISSION COMPLETE: passed!")
self.land_and_disarm()