From 8f977e857aa04f0689f186c70a8ce94659fc7b22 Mon Sep 17 00:00:00 2001 From: jesuslg123 Date: Tue, 6 Feb 2024 20:01:16 +0100 Subject: [PATCH] Mamba H743 2022B - Update ICM gyro version (#317) * Mamba H743 2022B - Update ICM gyro version The DIATONE Mamba H743 2022B flight controller it use ICM42688P instead of ICM42605, which seems to have been available on version 1 of the FC. I am not aware of 2022B (v2) version been sold with ICM42605. * Remove BMI270 --------- Co-authored-by: Mark Haslinghuis --- configs/MAMBAH743_2022B/config.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/configs/MAMBAH743_2022B/config.h b/configs/MAMBAH743_2022B/config.h index 8e8f4947..7ad9de05 100644 --- a/configs/MAMBAH743_2022B/config.h +++ b/configs/MAMBAH743_2022B/config.h @@ -26,13 +26,13 @@ #define BOARD_NAME MAMBAH743_2022B #define MANUFACTURER_ID DIAT -#define USE_GYRO -#define USE_GYRO_SPI_MPU6000 #define USE_ACC #define USE_ACC_SPI_MPU6000 -#define USE_ACCGYRO_BMI270 -#define USE_GYRO_SPI_ICM42605 -#define USE_ACC_SPI_ICM42605 +#define USE_ACC_SPI_ICM42688P +#define USE_GYRO +#define USE_GYRO_SPI_MPU6000 +#define USE_GYRO_SPI_ICM42688P +#define USE_BARO #define USE_BARO_DPS310 #define USE_FLASH #define USE_FLASH_M25P16 @@ -118,7 +118,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 4 -#define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define MAG_I2C_INSTANCE (I2CDEV_1) //TODO #define SDCARD_MODE OFF @@ -132,11 +131,9 @@ #define DEFAULT_CURRENT_METER_SCALE 80 #define PINIO1_CONFIG 129 #define PINIO1_BOX 0 -#define USE_SPI_GYRO #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN_YAW 0 -#define USE_SPI_GYRO #define GYRO_2_SPI_INSTANCE SPI4 #define GYRO_2_ALIGN CW270_DEG #define GYRO_2_ALIGN_YAW 2700