Browse Source

ArduCopter: ensure RTL performs a land if a failsafe has been triggered

master
rmackay9 12 years ago committed by Andrew Tridgell
parent
commit
d3cbf733ba
  1. 2
      ArduCopter/commands_logic.pde

2
ArduCopter/commands_logic.pde

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

Loading…
Cancel
Save