Skip to content

Commit

Permalink
Plane: do_aux_function call ice_control.do_aux_function
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Nov 17, 2024
1 parent 98f3f59 commit d9377d8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ArduPlane/RC_Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,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
Expand All @@ -190,6 +187,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;

Expand Down Expand Up @@ -292,9 +292,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
Expand Down Expand Up @@ -458,6 +455,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);
}
Expand Down

0 comments on commit d9377d8

Please sign in to comment.