summaryrefslogtreecommitdiff
path: root/src/kernel/ao_log.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-02 15:32:38 -0600
committerKeith Packard <keithp@keithp.com>2017-12-02 15:52:43 -0600
commitf0068719b17019c5cd7ed318364a0581caf64e1a (patch)
treeaed3ba2002e6337d4148887ecc3cb5ab5422965e /src/kernel/ao_log.h
parentc31744299e5a4342bbe26d3735ee2d8f09192ae9 (diff)
altos/kernel: MPU9250 support
Use MPU9250 for accel, gyro and mag data in logging, telemetry and flight status computations. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_log.h')
-rw-r--r--src/kernel/ao_log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/ao_log.h b/src/kernel/ao_log.h
index 1c186364..5f04ef9a 100644
--- a/src/kernel/ao_log.h
+++ b/src/kernel/ao_log.h
@@ -54,6 +54,7 @@ extern __pdata enum ao_flight_state ao_log_state;
#define AO_LOG_FORMAT_TELEMINI3 12 /* 16-byte MS5607 baro only, 3.3V supply, stm32f042 SoC */
#define AO_LOG_FORMAT_TELEFIRETWO 13 /* 32-byte test stand data */
#define AO_LOG_FORMAT_EASYMINI2 14 /* 16-byte MS5607 baro only, 3.3V supply, stm32f042 SoC */
+#define AO_LOG_FORMAT_TELEMEGA_3 15 /* 32 byte typed telemega records with 32 bit gyro cal and mpu9250 */
#define AO_LOG_FORMAT_NONE 127 /* No log at all */
/* Return the flight number from the given log slot, 0 if none, -slot on failure */
@@ -473,7 +474,7 @@ struct ao_log_gps {
} u;
};
-#if AO_LOG_FORMAT == AO_LOG_FOMAT_TELEMEGA_OLD || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA
+#if AO_LOG_FORMAT == AO_LOG_FOMAT_TELEMEGA_OLD || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA_3
typedef struct ao_log_mega ao_log_type;
#endif