Copter: Check GPS health

This commit is contained in:
Michael du Breuil 2017-09-21 19:54:16 -07:00 committed by Francisco Ferreira
parent 561acb372e
commit 516709fc72

View File

@ -399,7 +399,7 @@ void Copter::update_sensor_status_flags(void)
if (!g.compass_enabled || !compass.healthy() || !ahrs.use_compass()) {
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_3D_MAG;
}
if (gps.status() == AP_GPS::NO_GPS) {
if (!gps.is_healthy()) {
control_sensors_health &= ~MAV_SYS_STATUS_SENSOR_GPS;
}
if (!ap.rc_receiver_present || failsafe.radio) {