mirror of https://github.com/ArduPilot/ardupilot
Copter: report gyro unhealthy if failed calibration
This commit is contained in:
parent
eb594775b7
commit
661755e05a
|
@ -199,7 +199,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan)
|
|||
if (ap.rc_receiver_present && !failsafe.radio) {
|
||||
control_sensors_health |= MAV_SYS_STATUS_SENSOR_RC_RECEIVER;
|
||||
}
|
||||
if (!ins.get_gyro_health_all()) {
|
||||
if (!ins.get_gyro_health_all() || !ins.gyro_calibrated_ok_all()) {
|
||||
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_3D_GYRO;
|
||||
}
|
||||
if (!ins.get_accel_health_all()) {
|
||||
|
|
Loading…
Reference in New Issue