autotest: change loiter heading accuracy to 10

This commit is contained in:
Andrew Tridgell 2012-07-04 15:59:35 +10:00
parent b3c9cdb353
commit 8b7fc364f9
1 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,7 @@ def fly_left_circuit(mavproxy, mav):
# hard left
print("Starting turn %u" % i)
mavproxy.send('rc 1 1000\n')
if not wait_heading(mav, 270 - (90*i)):
if not wait_heading(mav, 270 - (90*i), accuracy=10):
return False
mavproxy.send('rc 1 1500\n')
print("Starting leg %u" % i)
@ -93,9 +93,9 @@ def fly_LOITER(mavproxy, mav, num_circles=4):
mavproxy.send('loiter\n')
wait_mode(mav, 'LOITER')
while num_circles > 0:
if not wait_heading(mav, 0):
if not wait_heading(mav, 0, accuracy=10):
return False
if not wait_heading(mav, 180):
if not wait_heading(mav, 180, accuracy=10):
return False
num_circles -= 1
print("Loiter %u circles left" % num_circles)
@ -320,6 +320,7 @@ def fly_ArduPlane(viewerip=None):
print("Failed mission")
failed = True
except pexpect.TIMEOUT, e:
print("Failed with timeout")
failed = True
mav.close()