From e550b79ba2b76507f5fc7a95e9ec7e0c455d35da Mon Sep 17 00:00:00 2001 From: treston Date: Mon, 12 Oct 2026 22:42:36 -0500 Subject: [PATCH] fix(fw_rate_control): read spoilers from Aux5 when FW_SPOILERS_MAN=6 The parameter metadata offers Aux5 as value 6 but the switch had no case for it, so the option silently gave no spoiler deflection. --- src/modules/fw_rate_control/FixedwingRateControl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/fw_rate_control/FixedwingRateControl.cpp b/src/modules/fw_rate_control/FixedwingRateControl.cpp index 7995c53c55b..f495a3fb41e 100644 --- a/src/modules/fw_rate_control/FixedwingRateControl.cpp +++ b/src/modules/fw_rate_control/FixedwingRateControl.cpp @@ -555,6 +555,10 @@ void FixedwingRateControl::Run() case 5: spoilers_control = PX4_ISFINITE(_manual_control_setpoint.aux4) ? math::max(_manual_control_setpoint.aux4, 0.f) : 0.f; break; + + case 6: + spoilers_control = PX4_ISFINITE(_manual_control_setpoint.aux5) ? math::max(_manual_control_setpoint.aux5, 0.f) : 0.f; + break; } normalized_unsigned_setpoint_s spoilers_setpoint;