mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:33:35 +08:00
IO failsafe - apply failsafe values to outputs when in failsafe.
This is required because otherwise, IO would output disarmed values if FMU goes into a disarmed state.
This commit is contained in:
@@ -360,7 +360,8 @@ mixer_tick(void)
|
|||||||
isr_debug(5, "> PWM disabled");
|
isr_debug(5, "> PWM disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mixer_servos_armed && (should_arm || should_arm_nothrottle)
|
if (mixer_servos_armed
|
||||||
|
&& (should_arm || should_arm_nothrottle || (source == MIX_FAILSAFE))
|
||||||
&& !(r_setup_arming & PX4IO_P_SETUP_ARMING_LOCKDOWN)) {
|
&& !(r_setup_arming & PX4IO_P_SETUP_ARMING_LOCKDOWN)) {
|
||||||
/* update the servo outputs. */
|
/* update the servo outputs. */
|
||||||
for (unsigned i = 0; i < PX4IO_SERVO_COUNT; i++) {
|
for (unsigned i = 0; i < PX4IO_SERVO_COUNT; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user