|
|
@ -511,7 +511,7 @@ static bool verify_RTL() |
|
|
|
// check if we've loitered long enough |
|
|
|
// check if we've loitered long enough |
|
|
|
if( millis() - rtl_loiter_start_time > (uint32_t)g.rtl_loiter_time.get() ) { |
|
|
|
if( millis() - rtl_loiter_start_time > (uint32_t)g.rtl_loiter_time.get() ) { |
|
|
|
// initiate landing or descent |
|
|
|
// initiate landing or descent |
|
|
|
if(g.rtl_alt_final == 0) { |
|
|
|
if(g.rtl_alt_final == 0 || ap.failsafe) { |
|
|
|
// land |
|
|
|
// land |
|
|
|
do_land(); |
|
|
|
do_land(); |
|
|
|
// override landing location (do_land defaults to current location) |
|
|
|
// override landing location (do_land defaults to current location) |
|
|
|