ao-tools: Parse TeleGPS state value from gps location packet
[fw/altos] / ao-tools / ao-telem / ao-telem.c
index da873838a7f79ad4b06e45be9815510234e8ea1f..75f94ec14aa0a8c37a764e9e3a9eccef4e7ca5c3 100644 (file)
@@ -145,6 +145,8 @@ main (int argc, char **argv)
                                                        telem.location.ground_speed / 100.0,
                                                        telem.location.climb_rate / 100.0,
                                                        telem.location.course * 2);
+                                       if ((telem.location.state & AO_GPS_STATE_VALID))
+                                               printf (" state %1d", telem.location.state & ~(AO_GPS_STATE_VALID));
                                        printf ("\n");
                                        break;
                                case AO_TELEMETRY_SATELLITE: