Browse Source

Plane: fix to gps present check in mavlink extended status 1 msg

master
Randy Mackay 12 years ago
parent
commit
1772a62415
  1. 2
      ArduPlane/GCS_Mavlink.pde

2
ArduPlane/GCS_Mavlink.pde

@ -138,7 +138,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan, uint16_t pack @@ -138,7 +138,7 @@ static NOINLINE void send_extended_status1(mavlink_channel_t chan, uint16_t pack
control_sensors_present |= (1<<2); // compass present
}
control_sensors_present |= (1<<3); // absolute pressure sensor present
if (g_gps != NULL && g_gps->status() >= GPS::NO_GPS) {
if (g_gps != NULL && g_gps->status() > GPS::NO_GPS) {
control_sensors_present |= (1<<5); // GPS present
}
control_sensors_present |= (1<<10); // 3D angular rate control

Loading…
Cancel
Save