mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 17:11:36 +08:00
Do not enter RC override if FMU is lost and termination failsafe mode requested
This commit is contained in:
@@ -139,7 +139,9 @@ mixer_tick(void)
|
|||||||
(r_status_flags & PX4IO_P_STATUS_FLAGS_RC_OK) &&
|
(r_status_flags & PX4IO_P_STATUS_FLAGS_RC_OK) &&
|
||||||
(r_status_flags & PX4IO_P_STATUS_FLAGS_MIXER_OK) &&
|
(r_status_flags & PX4IO_P_STATUS_FLAGS_MIXER_OK) &&
|
||||||
!(r_setup_arming & PX4IO_P_SETUP_ARMING_RC_HANDLING_DISABLED) &&
|
!(r_setup_arming & PX4IO_P_SETUP_ARMING_RC_HANDLING_DISABLED) &&
|
||||||
!(r_status_flags & PX4IO_P_STATUS_FLAGS_FMU_OK)) {
|
!(r_status_flags & PX4IO_P_STATUS_FLAGS_FMU_OK) &&
|
||||||
|
/* do not enter manual override if we asked for termination failsafe and FMU is lost */
|
||||||
|
!(r_setup_arming & PX4IO_P_SETUP_ARMING_TERMINATION_FAILSAFE)) {
|
||||||
|
|
||||||
/* if allowed, mix from RC inputs directly */
|
/* if allowed, mix from RC inputs directly */
|
||||||
source = MIX_OVERRIDE;
|
source = MIX_OVERRIDE;
|
||||||
|
|||||||
Reference in New Issue
Block a user