|
|
|
@ -267,7 +267,8 @@ void Copter::rtl_descent_run()
@@ -267,7 +267,8 @@ void Copter::rtl_descent_run()
|
|
|
|
|
|
|
|
|
|
// process pilot's input
|
|
|
|
|
if (!failsafe.radio) { |
|
|
|
|
if((g.throttle_behavior & THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND) != 0 && rc_throttle_control_in_filter.get() > 0.7f*THR_MAX){ |
|
|
|
|
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); |
|
|
|
@ -362,7 +363,8 @@ void Copter::rtl_land_run()
@@ -362,7 +363,8 @@ void Copter::rtl_land_run()
|
|
|
|
|
|
|
|
|
|
// process pilot's input
|
|
|
|
|
if (!failsafe.radio) { |
|
|
|
|
if((g.throttle_behavior & THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND) != 0 && rc_throttle_control_in_filter.get() > 0.7f*THR_MAX){ |
|
|
|
|
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); |
|
|
|
|