Copter: only report ahrs unhealthy after initialisation

This commit is contained in:
Randy Mackay 2014-10-02 13:44:02 +09:00
parent 29c704fecc
commit 3b0a308ed2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}