mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
autotest: cope with rover already being close to home in RTL
This commit is contained in:
parent
4f37a9363a
commit
e466333a79
@ -37,9 +37,9 @@ def drive_RTL(mavproxy, mav):
|
||||
'''drive to home'''
|
||||
print("Driving home in RTL")
|
||||
mavproxy.send('switch 3\n')
|
||||
wait_mode(mav, 'RTL')
|
||||
if not wait_location(mav, homeloc, accuracy=22, timeout=90):
|
||||
return False
|
||||
mavproxy.expect('Reached home')
|
||||
print("RTL Complete")
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user