Browse Source

autotest: loiter can be a bit slow to circle sometimes

master
Andrew Tridgell 13 years ago
parent
commit
51247ad6c1
  1. 4
      Tools/autotest/arduplane.py

4
Tools/autotest/arduplane.py

@ -93,9 +93,9 @@ def fly_LOITER(mavproxy, mav, num_circles=4): @@ -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)

Loading…
Cancel
Save