Plane: do_aux_function call ice_control.do_aux_function

This commit is contained in:
Iampete1 2024-11-17 11:16:39 +00:00
parent cb6907992b
commit 16f50e9719

View File

@ -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::FW_AUTOTUNE:
case AUX_FUNC::VFWD_THR_OVERRIDE: case AUX_FUNC::VFWD_THR_OVERRIDE:
case AUX_FUNC::PRECISION_LOITER: case AUX_FUNC::PRECISION_LOITER:
#if AP_ICENGINE_ENABLED
case AUX_FUNC::ICE_START_STOP:
#endif
#if QAUTOTUNE_ENABLED #if QAUTOTUNE_ENABLED
case AUX_FUNC::AUTOTUNE_TEST_GAINS: case AUX_FUNC::AUTOTUNE_TEST_GAINS:
#endif #endif
@ -194,6 +191,9 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::AUX_FUNC ch_option,
#endif #endif
case AUX_FUNC::TER_DISABLE: case AUX_FUNC::TER_DISABLE:
case AUX_FUNC::CROW_SELECT: 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); run_aux_function(ch_option, ch_flag, AuxFuncTriggerSource::INIT);
break; 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::FLAP:
case AUX_FUNC::FBWA_TAILDRAGGER: case AUX_FUNC::FBWA_TAILDRAGGER:
case AUX_FUNC::AIRBRAKE: case AUX_FUNC::AIRBRAKE:
#if AP_ICENGINE_ENABLED
case AUX_FUNC::ICE_START_STOP:
#endif
break; // input labels, nothing to do break; // input labels, nothing to do
#if HAL_QUADPLANE_ENABLED #if HAL_QUADPLANE_ENABLED
@ -468,6 +465,12 @@ bool RC_Channel_Plane::do_aux_function(const AUX_FUNC ch_option, const AuxSwitch
break; break;
#endif #endif
#if AP_ICENGINE_ENABLED
case AUX_FUNC::ICE_START_STOP:
plane.g2.ice_control.do_aux_function(ch_flag);
break;
#endif
default: default:
return RC_Channel::do_aux_function(ch_option, ch_flag); return RC_Channel::do_aux_function(ch_option, ch_flag);
} }