summaryrefslogtreecommitdiff
path: root/src/kernel/ao_log.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-20 17:26:53 -0700
committerKeith Packard <keithp@keithp.com>2018-10-20 17:31:57 -0700
commit345e3c37a1cf619392b54589bb91b4caf7844810 (patch)
treef5c77ce7be1f9dd3847ea3911db8e05e8e20a001 /src/kernel/ao_log.h
parent8c92656576aff3ceab5bead3c835d96c36098fe7 (diff)
altos/easymega-v2.0: Handle different mpu9250 orientation
The mpu9250 on EasyMega v2.0 is rotated 90° compared with EasyMega v1 and TeleMega IMU devices. 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 a9715962..04f00d3e 100644
--- a/src/kernel/ao_log.h
+++ b/src/kernel/ao_log.h
@@ -55,6 +55,7 @@ extern enum ao_flight_state ao_log_state;
#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_EASYMEGA_2 16 /* 32 byte typed telemega records with 32 bit gyro cal, mpu9250 rotated 90° and adxl375 */
#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 */
@@ -474,7 +475,7 @@ struct ao_log_gps {
} u;
};
-#if AO_LOG_FORMAT == AO_LOG_FOMAT_TELEMEGA_OLD || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA_3
+#if AO_LOG_FORMAT == AO_LOG_FOMAT_TELEMEGA_OLD || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA || AO_LOG_FORMAT == AO_LOG_FORMAT_TELEMEGA_3 || AO_LOG_FORMAT == AO_LOG_FORMAT_EASYMEGA_2
typedef struct ao_log_mega ao_log_type;
#endif