mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
Plane: report bad AHRS health if uncalibrated accels with EKF
fixes issue #1720
This commit is contained in:
parent
745b739ab7
commit
80d1bd230e
@ -224,6 +224,11 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan)
|
||||
// AHRS subsystem is unhealthy
|
||||
control_sensors_health &= ~MAV_SYS_STATUS_AHRS;
|
||||
}
|
||||
if (ahrs.have_inertial_nav() && !ins.calibrated()) {
|
||||
// trying to use EKF without properly calibrated accelerometers
|
||||
control_sensors_health &= ~MAV_SYS_STATUS_AHRS;
|
||||
}
|
||||
|
||||
if (barometer.healthy()) {
|
||||
control_sensors_health |= MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user