Skip to content
Snippets Groups Projects
Commit 1772a624 authored by Randy Mackay's avatar Randy Mackay
Browse files

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

parent 66d7f7b0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment