From ae5fdc2fde273bb63f3fba9a64ef0c8aaf277db1 Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Thu, 12 May 2016 07:52:02 +0100 Subject: [PATCH] autotest: if auto mission fails, land the copter --- Tools/autotest/arducopter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index d419bb37c0..a20f52374a 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -802,6 +802,10 @@ def fly_auto_test(mavproxy, mav): # fly the mission ret = wait_waypoint(mav, 0, num_wp-1, timeout=500) + # land if mission failed + if ret == False: + land(mavproxy, mav) + # set throttle to minimum mavproxy.send('rc 3 1000\n')