mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Copter: only report ahrs unhealthy after initialisation
This commit is contained in:
parent
85eee31510
commit
f059af2386
@ -213,7 +213,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
Block a user