summaryrefslogtreecommitdiff
path: root/src/core/ao_log.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-17 17:03:41 -0800
committerKeith Packard <keithp@keithp.com>2012-12-17 17:03:41 -0800
commitb1d37be4c024e9690107c693d9819229025966fa (patch)
tree7014df48ae04daf6b8eefe53b2b1853ec3e5993a /src/core/ao_log.h
parentb6c9e8ffc87481a23ba90fa22df7c9421e2cd6a6 (diff)
altos: Average MPU6000 values on ground for later use
Having long-term ground averages recorded to the eeprom file will make post-flight analysis of the data better. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_log.h')
-rw-r--r--src/core/ao_log.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/core/ao_log.h b/src/core/ao_log.h
index 4eaed420..93b01778 100644
--- a/src/core/ao_log.h
+++ b/src/core/ao_log.h
@@ -199,10 +199,16 @@ struct ao_log_mega {
union { /* 4 */
/* AO_LOG_FLIGHT */
struct {
- uint16_t flight; /* 4 */
- int16_t ground_accel; /* 6 */
- uint32_t ground_pres; /* 8 */
- } flight; /* 12 */
+ uint16_t flight; /* 4 */
+ int16_t ground_accel; /* 6 */
+ uint32_t ground_pres; /* 8 */
+ int16_t ground_accel_along; /* 16 */
+ int16_t ground_accel_across; /* 12 */
+ int16_t ground_accel_through; /* 14 */
+ int16_t ground_gyro_roll; /* 18 */
+ int16_t ground_gyro_pitch; /* 20 */
+ int16_t ground_gyro_yaw; /* 22 */
+ } flight; /* 24 */
/* AO_LOG_STATE */
struct {
uint16_t state;