mirror of https://github.com/ArduPilot/ardupilot
autotest: fixed loiter hold time
hold time was larger than the timeout
This commit is contained in:
parent
616c6f27a6
commit
b198042e2c
|
@ -55,7 +55,7 @@ def takeoff(mavproxy, mav, alt_min = 30, alt_max = 40):
|
||||||
return True
|
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'''
|
'''hold loiter position'''
|
||||||
mavproxy.send('switch 5\n') # loiter mode
|
mavproxy.send('switch 5\n') # loiter mode
|
||||||
wait_mode(mav, 'LOITER')
|
wait_mode(mav, 'LOITER')
|
||||||
|
@ -332,8 +332,8 @@ def fly_ArduCopter(viewerip=None):
|
||||||
failed = True
|
failed = True
|
||||||
|
|
||||||
# Loiter for 10 seconds
|
# Loiter for 10 seconds
|
||||||
print("# Loiter for 10 seconds")
|
print("# Loiter for 20 seconds")
|
||||||
if not loiter(mavproxy, mav, 120):
|
if not loiter(mavproxy, mav, 20):
|
||||||
print("loiter failed")
|
print("loiter failed")
|
||||||
failed = True
|
failed = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue