summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-13 20:41:36 -0700
committerKeith Packard <keithp@keithp.com>2014-07-13 20:41:36 -0700
commit5d1adc6775a66633661af747bc4176e06f97630f (patch)
treea15c99d598df4af77c9662f4cf0195376d7c8c43 /ao-tools
parent6c9daa4f471ac90ffce3bfe8876c9008f79a5b7f (diff)
ao-tools: Add a few GPS telem/eeprom constants
These make it possible to encode/decode GPS data from telemetry and eeprom files Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/lib/cc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ao-tools/lib/cc.h b/ao-tools/lib/cc.h
index c434b102..bff4b2c9 100644
--- a/ao-tools/lib/cc.h
+++ b/ao-tools/lib/cc.h
@@ -517,9 +517,18 @@ struct ao_log_gps {
#define AO_LOG_GPS_ALT 'H'
#define AO_LOG_GPS_SAT 'V'
#define AO_LOG_GPS_DATE 'Y'
+#define AO_LOG_GPS_POS 'P'
#define AO_LOG_CONFIG 'c'
+#define AO_GPS_NUM_SAT_MASK (0xf << 0)
+#define AO_GPS_NUM_SAT_SHIFT (0)
+
+#define AO_GPS_VALID (1 << 4)
+#define AO_GPS_RUNNING (1 << 5)
+#define AO_GPS_DATE_VALID (1 << 6)
+#define AO_GPS_COURSE_VALID (1 << 7)
+
#define AO_LOG_FORMAT_UNKNOWN 0 /* unknown; altosui will have to guess */
#define AO_LOG_FORMAT_FULL 1 /* 8 byte typed log records */
#define AO_LOG_FORMAT_TINY 2 /* two byte state/baro records */