From 9ba6f4efb70d944e0a96432caaed00533e30f3cd Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 9 Aug 2022 13:19:55 +0200 Subject: [PATCH] Helicopter: add yaw compensation from throttle CA_HELI_YAW_TH_S --- .../ActuatorEffectivenessHelicopter.cpp | 5 ++++- .../ActuatorEffectivenessHelicopter.hpp | 2 ++ src/modules/control_allocator/module.yaml | 15 ++++++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp b/src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp index 801e941446..9927a14374 100644 --- a/src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp +++ b/src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.cpp @@ -58,6 +58,7 @@ ActuatorEffectivenessHelicopter::ActuatorEffectivenessHelicopter(ModuleParams *p } _param_handles.yaw_collective_pitch_scale = param_find("CA_HELI_YAW_CP_S"); + _param_handles.yaw_throttle_scale = param_find("CA_HELI_YAW_TH_S"); updateParams(); } @@ -88,6 +89,7 @@ void ActuatorEffectivenessHelicopter::updateParams() } param_get(_param_handles.yaw_collective_pitch_scale, &_geometry.yaw_collective_pitch_scale); + param_get(_param_handles.yaw_throttle_scale, &_geometry.yaw_throttle_scale); } bool @@ -138,7 +140,8 @@ void ActuatorEffectivenessHelicopter::updateSetpoint(const matrix::Vector