Browse Source

Plane: consider GPS unhealthy if it doesn't have 3D lock

master
Andrew Tridgell 11 years ago
parent
commit
369c130c2d
  1. 2
      ArduPlane/GCS_Mavlink.pde

2
ArduPlane/GCS_Mavlink.pde

@ -209,7 +209,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan) @@ -209,7 +209,7 @@ static NOINLINE void 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 (g_gps != NULL && g_gps->status() > GPS::NO_GPS) {
if (g_gps != NULL && g_gps->status() >= GPS::GPS_OK_FIX_3D) {
control_sensors_health |= MAV_SYS_STATUS_SENSOR_GPS;
}
if (!ins.healthy()) {

Loading…
Cancel
Save