mirror of https://github.com/ArduPilot/ardupilot
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;
|
||||
}
|
||||
|
||||
if (!ahrs.healthy()) {
|
||||
if (ahrs.initialised() && !ahrs.healthy()) {
|
||||
// AHRS subsystem is unhealthy
|
||||
control_sensors_health &= ~MAV_SYS_STATUS_AHRS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue