forked from Archive/PX4-Autopilot
commander: fix offboard disarm failsafe
This commit is contained in:
parent
1e39c4828f
commit
9246d38667
|
@ -467,6 +467,11 @@ FailsafeBase::Action Failsafe::checkModeFallback(const failsafe_flags_s &status_
|
|||
// offboard signal
|
||||
if (status_flags.offboard_control_signal_lost && (status_flags.mode_req_offboard_signal & (1u << user_intended_mode))) {
|
||||
action = fromOffboardLossActParam(_param_com_obl_rc_act.get(), user_intended_mode);
|
||||
|
||||
// for this specific case, user_intended_mode is not modified, we shouldn't check additional fallbacks
|
||||
if (action == Action::Disarm) {
|
||||
return action;
|
||||
}
|
||||
}
|
||||
|
||||
// posctrl
|
||||
|
|
Loading…
Reference in New Issue