From 03d643a18ad188fc8c45c79469a8b0462235423d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 28 Apr 2021 19:13:54 +1000 Subject: [PATCH] ArduPlane: log auxillary function invocations --- ArduPlane/RC_Channel.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ArduPlane/RC_Channel.cpp b/ArduPlane/RC_Channel.cpp index d5ab778a92..9599a3b413 100644 --- a/ArduPlane/RC_Channel.cpp +++ b/ArduPlane/RC_Channel.cpp @@ -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);