mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 07:10:35 +08:00
failsafe: prevent switch offboard -->pos without RC
This commit is contained in:
@@ -669,6 +669,15 @@ FailsafeBase::Action Failsafe::checkModeFallback(const failsafe_flags_s &status_
|
||||
if (action == Action::Disarm) {
|
||||
return action;
|
||||
}
|
||||
|
||||
if (action == Action::FallbackPosCtrl || action == Action::FallbackAltCtrl || action == Action::FallbackStab) {
|
||||
// Check if RC is available, if not use the mode specified in NAV_RCL_ACT
|
||||
if (status_flags.manual_control_signal_lost) {
|
||||
ActionOptions rc_loss_action = fromNavDllOrRclActParam(_param_nav_rcl_act.get());
|
||||
action = rc_loss_action.action;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// PosCtrl/PositionSlow -> AltCtrl
|
||||
|
||||
Reference in New Issue
Block a user