ArduPlane: log auxillary function invocations

This commit is contained in:
Peter Barker 2021-04-28 19:13:54 +10:00 committed by Peter Barker
parent cc90eddc82
commit 03d643a18a
1 changed files with 3 additions and 9 deletions

View File

@ -169,7 +169,9 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
#if AP_AIRSPEED_AUTOCAL_ENABLE
case AUX_FUNC::ARSPD_CALIBRATE:
#endif
do_aux_function(ch_option, ch_flag);
case AUX_FUNC::TER_DISABLE:
case AUX_FUNC::CROW_SELECT:
run_aux_function(ch_option, ch_flag, AuxFuncTriggerSource::INIT);
break;
case AUX_FUNC::REVERSE_THROTTLE:
@ -183,14 +185,6 @@ void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option,
// want to startup with reverse thrust
break;
case AUX_FUNC::TER_DISABLE:
do_aux_function(ch_option, ch_flag);
break;
case AUX_FUNC::CROW_SELECT:
do_aux_function(ch_option, ch_flag);
break;
default:
// handle in parent class
RC_Channel::init_aux_function(ch_option, ch_flag);