mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: Check GPS health
This commit is contained in:
parent
561acb372e
commit
516709fc72
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user