From 0334cc1c88c16e91a27c0bca2c78a7e4f8cf7d6d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 26 Aug 2017 09:36:09 +1000 Subject: [PATCH] Tools: correct copter's fly_throttle_failsafe failure case --- Tools/autotest/arducopter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index f767e2d725..d748ff7646 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -281,13 +281,12 @@ def fly_throttle_failsafe(mavproxy, mav, side=60, timeout=180): mavproxy.send('switch 6\n') wait_mode(mav, 'STABILIZE') hover(mavproxy, mav) - failed = False # fly east 60 meters print("# Going forward %u meters" % side) mavproxy.send('rc 2 1350\n') if not wait_distance(mav, side, 5, 60): - failed = True + return False mavproxy.send('rc 2 1500\n') # pull throttle low