From 58f4b4b65d68c132eb4d9bf3fd9a5e36d48fe03c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 9 May 2018 14:22:13 +1000 Subject: [PATCH] Tools: autotest: correct copter auto mission test --- Tools/autotest/arducopter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 9d459d78cc..0b4be36fb7 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -934,8 +934,7 @@ class AutoTestCopter(AutoTest): self.set_rc(3, 1500) # fly the mission - if not self.wait_waypoint(0, num_wp-1, timeout=500): - self.land() + self.wait_waypoint(0, num_wp-1, timeout=500) # set throttle to minimum self.set_rc(3, 1000) @@ -1143,6 +1142,9 @@ class AutoTestCopter(AutoTest): # 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 self.mav.motors_disarmed_wait()