autotest: larger distance error allowed in fly simple test

This commit is contained in:
Andrew Tridgell 2012-11-28 11:41:22 +11:00
parent 2949d58b71
commit b2c71dac1b

View File

@ -228,7 +228,7 @@ def fly_simple(mavproxy, mav, side=60, timeout=120):
print("# Going forward %u meters" % side) print("# Going forward %u meters" % side)
mavproxy.send('rc 2 1390\n') mavproxy.send('rc 2 1390\n')
if not wait_distance(mav, side, 5, 60): if not wait_distance(mav, side, 10, 60):
failed = True failed = True
mavproxy.send('rc 2 1500\n') mavproxy.send('rc 2 1500\n')
@ -243,7 +243,7 @@ def fly_simple(mavproxy, mav, side=60, timeout=120):
print("# Going back %u meters" % side) print("# Going back %u meters" % side)
mavproxy.send('rc 2 1610\n') mavproxy.send('rc 2 1610\n')
if not wait_distance(mav, side, 5, 60): if not wait_distance(mav, side, 10, 60):
failed = True failed = True
mavproxy.send('rc 2 1500\n') mavproxy.send('rc 2 1500\n')
#restore to default #restore to default