summaryrefslogtreecommitdiff
path: root/ao-view/aoview.h
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2009-08-19 00:49:24 -0600
committerBdale Garbee <bdale@gag.com>2009-08-19 00:49:24 -0600
commit4486d9156e19e4280b42bcd422d81d04f2d04a92 (patch)
treed0313710d9040f63c6cb2f5f3d4b11c6208525f7 /ao-view/aoview.h
parentdd09f0bc2b950c00f3b489878cd69ad8a003f46c (diff)
parent33edd62992a32b0ec8ca66d879fa300871db5937 (diff)
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos0.5
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;