summaryrefslogtreecommitdiff
path: root/gps.h
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 /gps.h
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 'gps.h')
-rw-r--r--gps.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gps.h b/gps.h
index 8784a97b..f320e9ee 100644
--- a/gps.h
+++ b/gps.h
@@ -98,6 +98,8 @@ struct gps_fix_t {
double climb; /* Vertical speed, meters/sec */
double epc; /* Vertical speed uncertainty */
+ double magnetic_track; /* Course (relative to Magnetic North) */
+
/* ECEF data, all data in meters, and meters/second, or NaN */
struct {
double x, y, z; /* ECEF x, y, z */
@@ -2008,7 +2010,8 @@ struct gps_data_t {
#define OSCILLATOR_SET (1llu<<35)
#define ECEF_SET (1llu<<36)
#define VECEF_SET (1llu<<37)
-#define SET_HIGH_BIT 38
+#define MAGNETIC_TRACK_SET (1llu<<38)
+#define SET_HIGH_BIT 39
timestamp_t online; /* NZ if GPS is on line, 0 if not.
*
* Note: gpsd clears this time when sentences