mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 19:40:34 +08:00
Rename force_failsafe to termination for clarity
This commit is contained in:
committed by
Alex Klimaj
parent
34dacffc4a
commit
7fe78e184e
@@ -83,7 +83,7 @@ MixingOutput::MixingOutput(const char *param_prefix, uint8_t max_num_outputs, Ou
|
||||
_armed.prearmed = false;
|
||||
_armed.ready_to_arm = false;
|
||||
_armed.lockdown = false;
|
||||
_armed.force_failsafe = false;
|
||||
_armed.termination = false;
|
||||
_armed.in_esc_calibration_mode = false;
|
||||
|
||||
px4_sem_init(&_lock, 0, 1);
|
||||
@@ -479,8 +479,8 @@ MixingOutput::limitAndUpdateOutputs(float outputs[MAX_ACTUATORS], bool has_updat
|
||||
_current_output_value[i] = _disarmed_value[i];
|
||||
}
|
||||
|
||||
} else if (_armed.force_failsafe) {
|
||||
// overwrite outputs in case of force_failsafe with _failsafe_value values
|
||||
} else if (_armed.termination) {
|
||||
// Overwrite outputs with _failsafe_value when terminated
|
||||
for (size_t i = 0; i < _max_num_outputs; i++) {
|
||||
_current_output_value[i] = actualFailsafeValue(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user