From: Keith Packard Date: Mon, 14 Jul 2014 03:41:36 +0000 (-0700) Subject: ao-tools: Add a few GPS telem/eeprom constants X-Git-Tag: 1.4.9.2~5 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=5d1adc6775a66633661af747bc4176e06f97630f 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 --- 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 */