altos: Record pdop value in TeleMetrumV2 log
authorKeith Packard <keithp@keithp.com>
Fri, 11 Jul 2014 00:15:09 +0000 (17:15 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 11 Jul 2014 00:35:44 +0000 (17:35 -0700)
There's only one byte free, so we'll record the pdop value

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_gps_report_metrum.c
src/kernel/ao_log.h

index 31939385673be015f3bcf34e92c89797f7fd295d..8ce074fe33f97bb2ba7bc4d9119bce940ac06d8c 100644 (file)
@@ -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);
                }
 
index 080cfb02177af09053382e7074d14d7035673b92..da20e067148d23467915fb71b05ef91ed5436265 100644 (file)
@@ -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 {