summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-01 15:15:55 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-01 15:15:55 +0000
commit1aead380840db92adbb6ed3cdb213e93276956a9 (patch)
tree6e907f5825b16671d29f7cae1b01ebdd4139bc96 /gps.h
parentef029f6a2a1a47be5bd566a21b9b73d1ff0dd22f (diff)
downloadgpsd-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.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/gps.h b/gps.h
index bf9877f4..bf19dc8e 100644
--- a/gps.h
+++ b/gps.h
@@ -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. */