From 0e5f2c817c58a7b07c211de25161e8550706cea9 Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Tue, 6 Aug 2024 19:37:20 +0100 Subject: [PATCH] AP_MotorsHeli_RSC: Make variables in constructor const --- libraries/AP_Motors/AP_MotorsHeli_RSC.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Motors/AP_MotorsHeli_RSC.h b/libraries/AP_Motors/AP_MotorsHeli_RSC.h index e4b5ba4951bffb..d7f97bdeb8f6c1 100644 --- a/libraries/AP_Motors/AP_MotorsHeli_RSC.h +++ b/libraries/AP_Motors/AP_MotorsHeli_RSC.h @@ -154,8 +154,8 @@ class AP_MotorsHeli_RSC { const uint8_t _instance; // channel setup for aux function - SRV_Channel::Aux_servo_function_t _aux_fn; - uint8_t _default_channel; + const SRV_Channel::Aux_servo_function_t _aux_fn; + const uint8_t _default_channel; // internal variables RotorControlMode _control_mode = ROTOR_CONTROL_MODE_DISABLED; // motor control mode, Passthrough or Setpoint