diff options
author | Daniel_M_Williams <dwilliams@sea-machines.com> | 2018-05-30 13:50:58 -0400 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-06-12 18:56:15 -0700 |
commit | 5428507f30009df571d19dd01ad1e25cff1df7dc (patch) | |
tree | b16efa89c34b7392d40c726fbc2b44dbe6b8d40b /gps.h | |
parent | 0149f55bc22cdcbe6f662fab2563479170adc653 (diff) | |
download | gpsd-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |