From b198042e2c34b0d13847a3b2166a4dca84fa2cfe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 13 Dec 2011 19:07:52 +1100 Subject: [PATCH] autotest: fixed loiter hold time hold time was larger than the timeout --- Tools/autotest/arducopter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 83cc2975bb..6d13c40c96 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -55,7 +55,7 @@ def takeoff(mavproxy, mav, alt_min = 30, alt_max = 40): return True -def loiter(mavproxy, mav, holdtime=120, maxaltchange=10, timeout=60): +def loiter(mavproxy, mav, holdtime=20, maxaltchange=10, timeout=60): '''hold loiter position''' mavproxy.send('switch 5\n') # loiter mode wait_mode(mav, 'LOITER') @@ -332,8 +332,8 @@ def fly_ArduCopter(viewerip=None): failed = True # Loiter for 10 seconds - print("# Loiter for 10 seconds") - if not loiter(mavproxy, mav, 120): + print("# Loiter for 20 seconds") + if not loiter(mavproxy, mav, 20): print("loiter failed") failed = True