From 0ba6bf8721a966665051fe21efffa83eb8cb96a9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 10 Jul 2013 20:54:12 +0900 Subject: [PATCH] AutoTest: relax stability patch max distance --- Tools/autotest/arducopter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 606f6c985d..85b8af19c3 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -283,7 +283,7 @@ def fly_throttle_failsafe(mavproxy, mav, side=60, timeout=180): return False # fly_stability_patch - fly south, then hold loiter within 5m position and altitude and reduce 1 motor to 60% efficiency -def fly_stability_patch(mavproxy, mav, holdtime=30, maxaltchange=5, maxdistchange=5): +def fly_stability_patch(mavproxy, mav, holdtime=30, maxaltchange=5, maxdistchange=10): '''hold loiter position''' mavproxy.send('switch 5\n') # loiter mode wait_mode(mav, 'LOITER') @@ -331,6 +331,8 @@ def fly_stability_patch(mavproxy, mav, holdtime=30, maxaltchange=5, maxdistchang mavproxy.send('param set SIM_ENGINE_MUL 1.0\n') return True print("Stability Patch FAILED") + # restore motor 1 to 100% efficiency + mavproxy.send('param set SIM_ENGINE_MUL 1.0\n') return False # fly_fence_test - fly east until you hit the horizontal circular fence