mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
driver/px4io: set default failsafe values
This commit is contained in:
@@ -803,6 +803,14 @@ void PX4IO::update_params()
|
||||
int32_t pwm_fail_new = _mixing_output.failsafeValue(i);
|
||||
param_set(param_find(str), &pwm_fail_new);
|
||||
}
|
||||
|
||||
} else {
|
||||
if (pwm_default_channel_mask & 1 << i) {
|
||||
_mixing_output.failsafeValue(i) = PWM_MOTOR_OFF;
|
||||
|
||||
} else {
|
||||
_mixing_output.failsafeValue(i) = PWM_SERVO_STOP;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user