summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-11 00:11:31 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-11 00:11:31 -0400
commitf3f5ccd16d882a7be85106044ce47abb4171be85 (patch)
treeef7a391ffec6de8c3a44d8c9eb18cf8fdbcaeffd /gps.h
parent4bd0d82e4302dea0f094e9406daa57d4217e2f72 (diff)
downloadgpsd-f3f5ccd16d882a7be85106044ce47abb4171be85.tar.gz
Improve and dicument the JSON report for digital compasses.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gps.h b/gps.h
index dc558d67..e0da03d1 100644
--- a/gps.h
+++ b/gps.h
@@ -839,14 +839,15 @@ struct attitude_t {
double magnetic_field_y;
double magnetic_field_z;
double acceleration_length; /* unitvector sqrt(x^2 + y^2 +z^2) */
- double acceleration_field_x;
- double acceleration_field_y;
- double acceleration_field_z;
- double gyro_output_x;
- double gyro_output_y;
+ double acceleration_x;
+ double acceleration_y;
+ double acceleration_z;
+ double gyro_x;
+ double gyro_y;
double temperature;
+ double depth;
/* compass status -- TrueNorth (and any similar) devices only */
- char heading_st;
+ char mag_st;
char pitch_st;
char roll_st;
char yaw_st;