Skip to content

Commit

Permalink
Sub: Check GPS health
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedShell authored and OXINARF committed Sep 27, 2017
1 parent 516709f commit 4d1e616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduSub/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d1e616

Please sign in to comment.