summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-10 17:15:09 -0700
committerKeith Packard <keithp@keithp.com>2014-07-10 17:35:44 -0700
commit31ae24b5da3e198e7555ea3768d3cbdec3a28a5f (patch)
treecc166cd48a34cda0ba8e060e33d52959ac8aa07d
parent47e62bb26984f6c84660c1d0451f77c2d6ad7e5a (diff)
altos: Record pdop value in TeleMetrumV2 log
There's only one byte free, so we'll record the pdop value Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/kernel/ao_gps_report_metrum.c1
-rw-r--r--src/kernel/ao_log.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/ao_gps_report_metrum.c b/src/kernel/ao_gps_report_metrum.c
index 31939385..8ce074fe 100644
--- a/src/kernel/ao_gps_report_metrum.c
+++ b/src/kernel/ao_gps_report_metrum.c
@@ -56,6 +56,7 @@ ao_gps_report_metrum(void)
gps_log.u.gps_time.year = gps_data.year;
gps_log.u.gps_time.month = gps_data.month;
gps_log.u.gps_time.day = gps_data.day;
+ gps_log.u.gps_time.pdop = gps_data.pdop;
ao_log_metrum(&gps_log);
}
diff --git a/src/kernel/ao_log.h b/src/kernel/ao_log.h
index 080cfb02..da20e067 100644
--- a/src/kernel/ao_log.h
+++ b/src/kernel/ao_log.h
@@ -324,7 +324,7 @@ struct ao_log_metrum {
uint8_t year; /* 8 */
uint8_t month; /* 9 */
uint8_t day; /* 10 */
- uint8_t pad; /* 11 */
+ uint8_t pdop; /* 11 */
} gps_time; /* 12 */
/* AO_LOG_GPS_SAT (up to three packets) */
struct {