mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
Tools: autotest: correct copter auto mission test
This commit is contained in:
parent
513865ae4d
commit
58f4b4b65d
@ -934,8 +934,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.set_rc(3, 1500)
|
self.set_rc(3, 1500)
|
||||||
|
|
||||||
# fly the mission
|
# fly the mission
|
||||||
if not self.wait_waypoint(0, num_wp-1, timeout=500):
|
self.wait_waypoint(0, num_wp-1, timeout=500)
|
||||||
self.land()
|
|
||||||
|
|
||||||
# set throttle to minimum
|
# set throttle to minimum
|
||||||
self.set_rc(3, 1000)
|
self.set_rc(3, 1000)
|
||||||
@ -1143,6 +1142,9 @@ class AutoTestCopter(AutoTest):
|
|||||||
# Fly auto test
|
# Fly auto test
|
||||||
self.run_test("Fly copter mission", self.fly_auto_test)
|
self.run_test("Fly copter mission", self.fly_auto_test)
|
||||||
|
|
||||||
|
# land
|
||||||
|
self.run_test("Fly copter mission", self.land)
|
||||||
|
|
||||||
# wait for disarm
|
# wait for disarm
|
||||||
self.mav.motors_disarmed_wait()
|
self.mav.motors_disarmed_wait()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user