mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
autotest: loiter can be a bit slow to circle sometimes
This commit is contained in:
parent
c1405bddb3
commit
51247ad6c1
@ -93,9 +93,9 @@ def fly_LOITER(mavproxy, mav, num_circles=4):
|
|||||||
mavproxy.send('loiter\n')
|
mavproxy.send('loiter\n')
|
||||||
wait_mode(mav, 'LOITER')
|
wait_mode(mav, 'LOITER')
|
||||||
while num_circles > 0:
|
while num_circles > 0:
|
||||||
if not wait_heading(mav, 0, accuracy=10):
|
if not wait_heading(mav, 0, accuracy=10, timeout=60):
|
||||||
return False
|
return False
|
||||||
if not wait_heading(mav, 180, accuracy=10):
|
if not wait_heading(mav, 180, accuracy=10, timeout=60):
|
||||||
return False
|
return False
|
||||||
num_circles -= 1
|
num_circles -= 1
|
||||||
print("Loiter %u circles left" % num_circles)
|
print("Loiter %u circles left" % num_circles)
|
||||||
|
Loading…
Reference in New Issue
Block a user