summaryrefslogtreecommitdiff
path: root/src/ao_gps_test.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-11-15 16:04:41 -0800
committerKeith Packard <keithp@keithp.com>2009-11-15 16:19:52 -0800
commit524665fc221b0d483453c67b7211e282cebc8980 (patch)
treec65642da7284f8f184382acb785e51e5fe7a08af /src/ao_gps_test.c
parent3ee279ba76c2a79d142c466f19ef758cf4c01d70 (diff)
Add date to GPS data, captured from GPRMC packet.
Pull the date out of the GPS stream and send it over the telemetry link and write it to the eeprom. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_gps_test.c')
-rw-r--r--src/ao_gps_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ao_gps_test.c b/src/ao_gps_test.c
index 366bca71..3692f0e5 100644
--- a/src/ao_gps_test.c
+++ b/src/ao_gps_test.c
@@ -27,8 +27,12 @@
#define AO_GPS_VALID (1 << 4)
#define AO_GPS_RUNNING (1 << 5)
+#define AO_GPS_DATE_VALID (1 << 6)
struct ao_gps_data {
+ uint8_t year;
+ uint8_t month;
+ uint8_t day;
uint8_t hour;
uint8_t minute;
uint8_t second;