From f030e054befe8a48b02706e81c21a88b607c66bb Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 22 Mar 2024 15:10:16 +0900 Subject: [PATCH] RC_Channel: mount-lrf-enable calls mount on init this actually has no effect but makes it clear that we do handle the initial state of the mount's LRF albeit in a different way than expected --- libraries/RC_Channel/RC_Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index db6b9b31fb1a4c..ceba43aed45f68 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -666,7 +666,6 @@ void RC_Channel::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos case AUX_FUNC::LOWEHEISER_STARTER: case AUX_FUNC::MAG_CAL: case AUX_FUNC::CAMERA_IMAGE_TRACKING: - case AUX_FUNC::MOUNT_LRF_ENABLE: break; // not really aux functions: @@ -696,6 +695,7 @@ void RC_Channel::init_aux_function(const AUX_FUNC ch_option, const AuxSwitchPos #if HAL_MOUNT_ENABLED case AUX_FUNC::RETRACT_MOUNT1: case AUX_FUNC::MOUNT_LOCK: + case AUX_FUNC::MOUNT_LRF_ENABLE: #endif case AUX_FUNC::LOG_PAUSE: case AUX_FUNC::ARM_EMERGENCY_STOP: