ao-tools: Update ao-eeprom for TeleMega v6
authorKeith Packard <keithp@keithp.com>
Wed, 28 Dec 2022 05:32:39 +0000 (21:32 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 28 Dec 2022 05:32:39 +0000 (21:32 -0800)
Add new log file format; no other changes needed here.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-eeprom/ao-eeprom.c
ao-tools/lib/ao-eeprom-read.h

index d9b331953d35bd84677046fbe98940d71096e13f..8650f38d7f35e0a947447c065d2abc6f93ca32b3 100644 (file)
@@ -355,6 +355,7 @@ main (int argc, char **argv)
                        break;
                case AO_LOG_FORMAT_TELEMEGA_4:
                case AO_LOG_FORMAT_TELEMEGA_5:
+               case AO_LOG_FORMAT_TELEMEGA_6:
                        len = 32;
                        max_adc= 4095;
                        adc_ref = 3.3;
@@ -428,6 +429,7 @@ main (int argc, char **argv)
                                case AO_LOG_FORMAT_EASYMEGA_2:
                                case AO_LOG_FORMAT_TELEMEGA_4:
                                case AO_LOG_FORMAT_TELEMEGA_5:
+                               case AO_LOG_FORMAT_TELEMEGA_6:
                                        log_mega = (struct ao_log_mega *) &eeprom->data[pos];
                                        switch (log_mega->type) {
                                        case AO_LOG_FLIGHT:
index a103824b35bfd148556f3d38d223351d6e94d2b4..01c2ef35aa6af46804ad43393d049c2f273f90b6 100644 (file)
@@ -47,6 +47,7 @@
 #define AO_LOG_FORMAT_TELEMEGA_4       19      /* 32 byte typed telemega records with 32 bit gyro cal and Bmx160 */
 #define AO_LOG_FORMAT_EASYMOTOR                20      /* 16 byte typed easymotor records with pressure sensor and adxl375 */
 #define AO_LOG_FORMAT_TELEMEGA_5       21      /* 32 byte typed telemega records with 32 bit gyro cal, mpu6000 and mmc5983 */
+#define AO_LOG_FORMAT_TELEMEGA_6       22      /* 32 byte typed telemega records with 32 bit gyro cal, bmi088 and mmc5983 */
 #define AO_LOG_FORMAT_NONE             127     /* No log at all */
 
 enum ao_pyro_flag {