mirror of https://github.com/ArduPilot/ardupilot
Plane: `do_aux_function` call `ice_control.do_aux_function`
This commit is contained in:
parent
cb6907992b
commit
16f50e9719
|
@ -172,9 +172,6 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::AUX_FUNC ch_option,
|
|||
case AUX_FUNC::FW_AUTOTUNE:
|
||||
case AUX_FUNC::VFWD_THR_OVERRIDE:
|
||||
case AUX_FUNC::PRECISION_LOITER:
|
||||
#if AP_ICENGINE_ENABLED
|
||||
case AUX_FUNC::ICE_START_STOP:
|
||||
#endif
|
||||
#if QAUTOTUNE_ENABLED
|
||||
case AUX_FUNC::AUTOTUNE_TEST_GAINS:
|
||||
#endif
|
||||
|
@ -194,6 +191,9 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::AUX_FUNC ch_option,
|
|||
#endif
|
||||
case AUX_FUNC::TER_DISABLE:
|
||||
case AUX_FUNC::CROW_SELECT:
|
||||
#if AP_ICENGINE_ENABLED
|
||||
case AUX_FUNC::ICE_START_STOP:
|
||||
#endif
|
||||
run_aux_function(ch_option, ch_flag, AuxFuncTriggerSource::INIT);
|
||||
break;
|
||||
|
||||
|
@ -296,9 +296,6 @@ bool RC_Channel_Plane::do_aux_function(const AUX_FUNC ch_option, const AuxSwitch
|
|||
case AUX_FUNC::FLAP:
|
||||
case AUX_FUNC::FBWA_TAILDRAGGER:
|
||||
case AUX_FUNC::AIRBRAKE:
|
||||
#if AP_ICENGINE_ENABLED
|
||||
case AUX_FUNC::ICE_START_STOP:
|
||||
#endif
|
||||
break; // input labels, nothing to do
|
||||
|
||||
#if HAL_QUADPLANE_ENABLED
|
||||
|
@ -468,6 +465,12 @@ bool RC_Channel_Plane::do_aux_function(const AUX_FUNC ch_option, const AuxSwitch
|
|||
break;
|
||||
#endif
|
||||
|
||||
#if AP_ICENGINE_ENABLED
|
||||
case AUX_FUNC::ICE_START_STOP:
|
||||
plane.g2.ice_control.do_aux_function(ch_flag);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return RC_Channel::do_aux_function(ch_option, ch_flag);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue