summaryrefslogtreecommitdiff
path: root/ao-view/aoview.h
diff options
context:
space:
mode:
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;