Skip to content
Snippets Groups Projects
Commit e466333a authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

autotest: cope with rover already being close to home in RTL

parent 4f37a936
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment