From 5428507f30009df571d19dd01ad1e25cff1df7dc Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Wed, 30 May 2018 13:50:58 -0400 Subject: $GPVTG Added parsing, storage, output of magnetic course Signed-off-by: Gary E. Miller --- libgps_core.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libgps_core.c') 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) { -- cgit v1.2.1