Update ao-view to add GPS satellite tracking data
[fw/altos] / ao-view / aoview.h
index e8334e5b2693388117036e8ddca79f6f206626ae..9ca65298b7a75839a6c3c2807cb4b1edefe4ad5f 100644 (file)
@@ -75,6 +75,26 @@ struct aogps {
        int     v_error;        /* m */
 };
 
+#define SIRF_SAT_STATE_ACQUIRED                        (1 << 0)
+#define SIRF_SAT_STATE_CARRIER_PHASE_VALID     (1 << 1)
+#define SIRF_SAT_BIT_SYNC_COMPLETE             (1 << 2)
+#define SIRF_SAT_SUBFRAME_SYNC_COMPLETE                (1 << 3)
+#define SIRF_SAT_CARRIER_PULLIN_COMPLETE       (1 << 4)
+#define SIRF_SAT_CODE_LOCKED                   (1 << 5)
+#define SIRF_SAT_ACQUISITION_FAILED            (1 << 6)
+#define SIRF_SAT_EPHEMERIS_AVAILABLE           (1 << 7)
+
+struct aogps_sat {
+       int     svid;
+       int     state;
+       int     c_n0;
+};
+
+struct aogps_tracking {
+       int                     channels;
+       struct aogps_sat        sats[12];
+};
+
 struct aodata {
        char    callsign[16];
        int     serial;
@@ -93,6 +113,7 @@ struct aodata {
        int     flight_pres;
        int     ground_pres;
        struct aogps    gps;
+       struct aogps_tracking   gps_tracking;
 };
 
 struct aostate {
@@ -121,6 +142,7 @@ struct aostate {
        double  max_speed;
 
        struct aogps    gps;
+       struct aogps_tracking   gps_tracking;
 
        int     gps_valid;
        double  pad_lat;