autotest: loiter can be a bit slow to circle sometimes

This commit is contained in:
Andrew Tridgell 2012-08-27 13:19:21 +10:00
parent c1405bddb3
commit 51247ad6c1

View File

@ -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, accuracy=10):
if not wait_heading(mav, 0, accuracy=10, timeout=60):
return False
if not wait_heading(mav, 180, accuracy=10):
if not wait_heading(mav, 180, accuracy=10, timeout=60):
return False
num_circles -= 1
print("Loiter %u circles left" % num_circles)