mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
fix(commander): prevent arming if enabled parachute check fails
This commit is contained in:
1 parent
4caac66328
commit
fcb627f572
7 files changed
+48
-79
No files matched your search
@@ -414,7 +414,6 @@ FailsafeBase::ActionOptions Failsafe::fromParachuteActParam(int param_value)
|
||||
break;
|
||||
|
||||
case parachute_unhealthy_failsafe_mode::Warning:
|
||||
case parachute_unhealthy_failsafe_mode::Error:
|
||||
options.action = Action::Warn;
|
||||
options.clear_condition = ClearCondition::WhenConditionClears;
|
||||
break;
|
||||
@@ -628,7 +627,7 @@ void Failsafe::checkStateAndMode(const hrt_abstime &time_us, const State &state,
|
||||
}
|
||||
|
||||
// Parachute system health failsafe
|
||||
CHECK_FAILSAFE(status_flags, parachute_unhealthy, ActionOptions(fromParachuteActParam(_param_com_parachute_act.get())));
|
||||
CHECK_FAILSAFE(status_flags, parachute_unhealthy, ActionOptions(fromParachuteActParam(_param_com_parachute.get())));
|
||||
|
||||
// Remote ID (Open Drone ID) loss failsafe
|
||||
if (state.armed && _param_com_arm_odid.get() >= int32_t(open_drone_id_failsafe_mode::Return_mode)) {
|
||||
|
||||
Reference in new issue
Block a user