mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
Copter: only report ahrs unhealthy after initialisation
This commit is contained in:
parent
29c704fecc
commit
3b0a308ed2
@ -206,7 +206,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan)
|
|||||||
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_3D_ACCEL;
|
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_3D_ACCEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ahrs.healthy()) {
|
if (ahrs.initialised() && !ahrs.healthy()) {
|
||||||
// AHRS subsystem is unhealthy
|
// AHRS subsystem is unhealthy
|
||||||
control_sensors_health &= ~MAV_SYS_STATUS_AHRS;
|
control_sensors_health &= ~MAV_SYS_STATUS_AHRS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user