summaryrefslogtreecommitdiff
path: root/ao-view/aoview.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-08-18 23:38:16 -0700
committerKeith Packard <keithp@keithp.com>2009-08-18 23:38:28 -0700
commit33edd62992a32b0ec8ca66d879fa300871db5937 (patch)
treefcc537ef40f60948e75e753d7d992ef0fdab58c6 /ao-view/aoview.h
parent29687cbd462a332d9a36ed87500c5b737dcae3f4 (diff)
Update ao-view to add GPS satellite tracking data
This adds another column to the display to hold per-satellite GPS tracking data and a count of the visible and locked sats. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-view/aoview.h')
-rw-r--r--ao-view/aoview.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/ao-view/aoview.h b/ao-view/aoview.h
index e8334e5b..9ca65298 100644
--- a/ao-view/aoview.h
+++ b/ao-view/aoview.h
@@ -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;