Browse Source

Plane: Report the primary magnetometer health rather then the first

master
Michael du Breuil 8 years ago committed by Andrew Tridgell
parent
commit
1f5743e900
  1. 2
      ArduPlane/sensors.cpp

2
ArduPlane/sensors.cpp

@ -303,7 +303,7 @@ void Plane::update_sensor_status_flags(void) @@ -303,7 +303,7 @@ void Plane::update_sensor_status_flags(void)
if (barometer.all_healthy()) {
control_sensors_health |= MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE;
}
if (g.compass_enabled && compass.healthy(0) && ahrs.use_compass()) {
if (g.compass_enabled && compass.healthy() && ahrs.use_compass()) {
control_sensors_health |= MAV_SYS_STATUS_SENSOR_3D_MAG;
}
if (gps.status() >= AP_GPS::GPS_OK_FIX_3D) {

Loading…
Cancel
Save