Browse Source

autotest: fix fly_square mission

waypoint doesn't change until mission is running
zr-v5.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
120167f799
  1. 2
      Tools/autotest/arducopter.py

2
Tools/autotest/arducopter.py

@ -407,8 +407,8 @@ class AutoTestCopter(AutoTest): @@ -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()

Loading…
Cancel
Save