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.
This commit is contained in:
treston authored and Silvan Fuhrer committed 2026-10-13 16:04:02 +02:00
1 parent f63f2343f4
commit e550b79ba2
1 file changed
+4
@@ -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;