Copter: cancelling no-gps-land switches to AltHold

Previously it could switch to Loiter
This commit is contained in:
Randy Mackay 2016-01-14 15:13:59 +09:00
parent dc2ec5db18
commit d989cf29e2
1 changed files with 1 additions and 3 deletions

View File

@ -159,9 +159,7 @@ void Copter::land_nogps_run()
if ((g.throttle_behavior & THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND) != 0 && rc_throttle_control_in_filter.get() > LAND_CANCEL_TRIGGER_THR){
Log_Write_Event(DATA_LAND_CANCELLED_BY_PILOT);
// exit land if throttle is high
if (!set_mode(LOITER)) {
set_mode(ALT_HOLD);
}
set_mode(ALT_HOLD);
}
if (g.land_repositioning) {