mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Sub: Check GPS health
This commit is contained in:
parent
516709fc72
commit
4d1e61633b
@ -163,7 +163,7 @@ NOINLINE void Sub::send_extended_status1(mavlink_channel_t chan)
|
||||
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 OPTFLOW == ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user