mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user