|
|
|
@ -75,7 +75,7 @@ def fly_RTL(mavproxy, mav):
@@ -75,7 +75,7 @@ def fly_RTL(mavproxy, mav):
|
|
|
|
|
print("Flying home in RTL") |
|
|
|
|
mavproxy.send('switch 2\n') |
|
|
|
|
wait_mode(mav, 'RTL') |
|
|
|
|
if not wait_location(mav, homeloc, accuracy=90, |
|
|
|
|
if not wait_location(mav, homeloc, accuracy=120, |
|
|
|
|
target_altitude=homeloc.alt+100, height_accuracy=20, |
|
|
|
|
timeout=90): |
|
|
|
|
return False |
|
|
|
|