mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 19:51:35 +08:00
Add missing mixer ok check in override mode, clear FMU lost alarm when setting FMU_OK flag, print AP RX timeout in production mode as well
This commit is contained in:
@@ -92,7 +92,7 @@ mixer_tick(void)
|
|||||||
|
|
||||||
/* too long without FMU input, time to go to failsafe */
|
/* too long without FMU input, time to go to failsafe */
|
||||||
if (r_status_flags & PX4IO_P_STATUS_FLAGS_FMU_OK) {
|
if (r_status_flags & PX4IO_P_STATUS_FLAGS_FMU_OK) {
|
||||||
debug("AP RX timeout");
|
lowsyslog("AP RX timeout");
|
||||||
}
|
}
|
||||||
r_status_flags &= ~(PX4IO_P_STATUS_FLAGS_FMU_OK | PX4IO_P_STATUS_FLAGS_RAW_PWM);
|
r_status_flags &= ~(PX4IO_P_STATUS_FLAGS_FMU_OK | PX4IO_P_STATUS_FLAGS_RAW_PWM);
|
||||||
r_status_alarms |= PX4IO_P_STATUS_ALARMS_FMU_LOST;
|
r_status_alarms |= PX4IO_P_STATUS_ALARMS_FMU_LOST;
|
||||||
@@ -101,6 +101,7 @@ mixer_tick(void)
|
|||||||
r_status_flags |= PX4IO_P_STATUS_FLAGS_OVERRIDE;
|
r_status_flags |= PX4IO_P_STATUS_FLAGS_OVERRIDE;
|
||||||
} else {
|
} else {
|
||||||
r_status_flags |= PX4IO_P_STATUS_FLAGS_FMU_OK;
|
r_status_flags |= PX4IO_P_STATUS_FLAGS_FMU_OK;
|
||||||
|
r_status_alarms &= ~PX4IO_P_STATUS_ALARMS_FMU_LOST;
|
||||||
}
|
}
|
||||||
|
|
||||||
source = MIX_FAILSAFE;
|
source = MIX_FAILSAFE;
|
||||||
@@ -123,7 +124,8 @@ mixer_tick(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( (r_status_flags & PX4IO_P_STATUS_FLAGS_OVERRIDE) &&
|
if ( (r_status_flags & PX4IO_P_STATUS_FLAGS_OVERRIDE) &&
|
||||||
(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)) {
|
||||||
|
|
||||||
/* 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