summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-22 16:32:18 -0700
committerGary E. Miller <gem@rellim.com>2018-09-22 16:33:52 -0700
commit0220c30ee51a2a776b45564b3eeb0a8a5dc2aaaf (patch)
treeb869e02ad0294d6a74ccf7fc4b4ea30364aae96b /gps.h
parent49748a4a8dc2709ec1a3c11ca62d1a2e7d49e733 (diff)
downloadgpsd-0220c30ee51a2a776b45564b3eeb0a8a5dc2aaaf.tar.gz
gps.h: add mtime field to attitude_t.
Get all these binary changes in at once. mtime not used yet.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/gps.h b/gps.h
index 6860cd6e..58ff0d87 100644
--- a/gps.h
+++ b/gps.h
@@ -40,6 +40,7 @@ extern "C" {
* changed prototype of gps_read() to add buffer parameters
* increased length of devconfig_t.subtype
* add gnssid:svid:sigid to satellite_t
+ * add mtime to attitude_t
*/
#define GPSD_API_MAJOR_VERSION 7 /* bump on incompatible changes */
#define GPSD_API_MINOR_VERSION 0 /* bump on compatible changes */
@@ -1848,23 +1849,24 @@ struct satellite_t {
};
struct attitude_t {
- double heading;
- double pitch;
- double roll;
- double yaw;
- double dip;
- double mag_len; /* unitvector sqrt(x^2 + y^2 +z^2) */
- double mag_x;
- double mag_y;
- double mag_z;
+ struct timespec mtime; /* time of measurement */
double acc_len; /* unitvector sqrt(x^2 + y^2 +z^2) */
double acc_x;
double acc_y;
double acc_z;
+ double depth;
+ double dip;
double gyro_x;
double gyro_y;
+ double heading;
+ double mag_len; /* unitvector sqrt(x^2 + y^2 +z^2) */
+ double mag_x;
+ double mag_y;
+ double mag_z;
+ double pitch;
+ double roll;
double temp;
- double depth;
+ double yaw;
/* compass status -- TrueNorth (and any similar) devices only */
char mag_st;
char pitch_st;