From 6e1e2f1a2c22650b7db12e5db1101441513e718e Mon Sep 17 00:00:00 2001 From: TedObrien Date: Tue, 19 Nov 2024 10:14:26 +0000 Subject: [PATCH] update variable name --- .../ActuatorEffectivenessHelicopter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/control_allocator/VehicleActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp b/src/modules/control_allocator/VehicleActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp index 2dcf95b92b..cf66d723b5 100644 --- a/src/modules/control_allocator/VehicleActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp +++ b/src/modules/control_allocator/VehicleActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp @@ -66,7 +66,7 @@ ActuatorEffectivenessHelicopter::ActuatorEffectivenessHelicopter(ModuleParams *p _param_handles.yaw_ccw = param_find("CA_HELI_YAW_CCW"); _param_handles.spoolup_time = param_find("COM_SPOOLUP_TIME"); _param_handles.linearize_servos = param_find("CA_LIN_SERVO"); - _param_handles.max_sevo_throw = param_find("CA_MAX_SVO_THROW"); + _param_handles.max_servo_throw = param_find("CA_MAX_SVO_THROW"); updateParams(); } @@ -200,7 +200,7 @@ float ActuatorEffectivenessHelicopter::getLinearServoOutput(float input) const input = math::constrain(input, -1.0f, 1.0f); //servo output is calculated by normalizing input to arm rotation of CA_MAX_SVO_THROW degrees as full input for a linear throw - float svo_height = _geometry.max_sevo_height * input; + float svo_height = _geometry.max_servo_height * input; if (!PX4_ISFINITE(svo_height)) { svo_height = 0.0f;