summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-01 19:34:17 -0700
committerKeith Packard <keithp@keithp.com>2012-06-01 19:34:17 -0700
commit6806103bad98385c0ec122d400f981eb81c59dd3 (patch)
treef836c3e1f702d2ca8ed0af8fed213cb5244f20b1
parente5aebfe0203de9e69712fac291c8cd0d3a96a385 (diff)
altos: add high-z accel and mag sensor to megametrum logging
These nicely fill the 32-byte sensor log record Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao_log.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/core/ao_log.h b/src/core/ao_log.h
index e585750f..04abeb7e 100644
--- a/src/core/ao_log.h
+++ b/src/core/ao_log.h
@@ -216,13 +216,17 @@ struct ao_log_mega {
int16_t gyro_x; /* 18 */
int16_t gyro_y; /* 20 */
int16_t gyro_z; /* 22 */
- } sensor; /* 24 */
+ int16_t mag_x; /* 24 */
+ int16_t mag_y; /* 26 */
+ int16_t mag_z; /* 28 */
+ int16_t accel; /* 30 */
+ } sensor; /* 32 */
struct {
int16_t v_batt; /* 4 */
- int16_t v_pbatt; /* 8 */
- int16_t n_sense; /* 10 */
- int16_t sense[10]; /* 12 */
- } volt; /* 32 */
+ int16_t v_pbatt; /* 6 */
+ int16_t n_sense; /* 8 */
+ int16_t sense[10]; /* 10 */
+ } volt; /* 30 */
struct {
int32_t latitude; /* 4 */
int32_t longitude; /* 8 */