summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorDaniel_M_Williams <dwilliams@sea-machines.com>2018-05-30 13:50:58 -0400
committerGary E. Miller <gem@rellim.com>2018-06-12 18:56:15 -0700
commit5428507f30009df571d19dd01ad1e25cff1df7dc (patch)
treeb16efa89c34b7392d40c726fbc2b44dbe6b8d40b /libgps_core.c
parent0149f55bc22cdcbe6f662fab2563479170adc653 (diff)
downloadgpsd-5428507f30009df571d19dd01ad1e25cff1df7dc.tar.gz
$GPVTG Added parsing, storage, output of magnetic course
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 40b7425a..29ac6da1 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -313,6 +313,9 @@ void libgps_dump_state(struct gps_data_t *collect)
(void)fprintf(debugfp, "SPEED: %lf\n", collect->fix.speed);
if (collect->set & TRACK_SET)
(void)fprintf(debugfp, "TRACK: track: %lf\n", collect->fix.track);
+ if (collect->set & MAGNETIC_TRACK_SET)
+ (void)fprintf(debugfp, "MAGNETIC_TRACK: magtrack: %lf\n",
+ collect->fix.magnetic_track);
if (collect->set & CLIMB_SET)
(void)fprintf(debugfp, "CLIMB: climb: %lf\n", collect->fix.climb);
if (collect->set & STATUS_SET) {