diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-08-01 15:15:55 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-08-01 15:15:55 +0000 |
commit | 1aead380840db92adbb6ed3cdb213e93276956a9 (patch) | |
tree | 6e907f5825b16671d29f7cae1b01ebdd4139bc96 /gps.h | |
parent | ef029f6a2a1a47be5bd566a21b9b73d1ff0dd22f (diff) | |
download | gpsd-1aead380840db92adbb6ed3cdb213e93276956a9.tar.gz |
True North support integrated.
It's not compiled in by default, but it does require one architecture
change -- device channels is now a driver- specific capability, since
the Thales GPS our TrueNorth user is working with has 14 channels.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -17,11 +17,9 @@ extern "C" { #include <pthread.h> /* pacifies OpenBSD's compiler */ #endif -#define MAXTAGLEN 6 /* maximum length of sentence tag name */ -#define MAXCHANNELS 12 /* maximum GPS channels (*not* satellites!) */ -#define NMEA_CHANNELS 12 /* max channels allowed in NMEA format */ +#define MAXTAGLEN 8 /* maximum length of sentence tag name */ +#define MAXCHANNELS 14 /* maximum GPS channels (*not* satellites!) */ #define SIRF_CHANNELS 12 /* max channels allowed in SiRF format */ -#define EVERMORE_CHANNELS 12 /* max channels allowed in EverMore format */ /* * The structure describing an uncertainty volume in kinematic space. @@ -68,6 +66,9 @@ struct gps_fix_t { double eps; /* Speed uncertainty, meters/sec */ double climb; /* Vertical speed, meters/sec */ double epc; /* Vertical speed uncertainty */ + double pitch; /* Pitch angle in degrees */ + double roll; /* Roll angle in degrees */ + double dip; /* Dip angle in degrees */ }; /* @@ -251,6 +252,12 @@ struct gps_data_t { #define SAT_FIX_USED 0x40 /* used for position fix */ #endif + /* compass status */ + char headingStatus; + char pitchStatus; + char rollStatus; + double horzField; /* Magnitude of horizontal magnetic field */ + /* where and what gpsd thinks the device is */ char gps_device[PATH_MAX]; /* only valid if non-null. */ char *gps_id; /* only valid if non-null. */ |