ArduCopter: log auxillary function invocations

This commit is contained in:
Peter Barker 2021-04-28 19:13:53 +10:00 committed by Peter Barker
parent a12ed2c99f
commit cc90eddc82
1 changed files with 2 additions and 4 deletions

View File

@ -113,10 +113,8 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const AuxS
case AUX_FUNC::SUPERSIMPLE_MODE: case AUX_FUNC::SUPERSIMPLE_MODE:
case AUX_FUNC::SURFACE_TRACKING: case AUX_FUNC::SURFACE_TRACKING:
case AUX_FUNC::WINCH_ENABLE: case AUX_FUNC::WINCH_ENABLE:
do_aux_function(ch_option, ch_flag);
break;
case AUX_FUNC::AIRMODE: case AUX_FUNC::AIRMODE:
do_aux_function_change_air_mode(ch_flag); run_aux_function(ch_option, ch_flag, AuxFuncTriggerSource::INIT);
break; break;
default: default:
RC_Channel::init_aux_function(ch_option, ch_flag); RC_Channel::init_aux_function(ch_option, ch_flag);
@ -127,7 +125,7 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const AuxS
// do_aux_function_change_mode - change mode based on an aux switch // do_aux_function_change_mode - change mode based on an aux switch
// being moved // being moved
void RC_Channel_Copter::do_aux_function_change_mode(const Mode::Number mode, void RC_Channel_Copter::do_aux_function_change_mode(const Mode::Number mode,
const AuxSwitchPos ch_flag) const AuxSwitchPos ch_flag)
{ {
switch(ch_flag) { switch(ch_flag) {
case AuxSwitchPos::HIGH: { case AuxSwitchPos::HIGH: {