From 600f3b8a3da597b22b02332cfe5a42f842e1a2fb Mon Sep 17 00:00:00 2001 From: "K.J" <95895613+Greypang@users.noreply.github.com> Date: Thu, 18 Jul 2024 19:46:57 +0800 Subject: [PATCH] Update config.h TAKERG4AIO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Defines the I2C instance for mag and Baro, And added some Baro and Mag --- configs/TAKERG4AIO/config.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configs/TAKERG4AIO/config.h b/configs/TAKERG4AIO/config.h index b63bfe7d..d156aa39 100644 --- a/configs/TAKERG4AIO/config.h +++ b/configs/TAKERG4AIO/config.h @@ -32,6 +32,15 @@ #define USE_FLASH #define USE_FLASH_W25Q128FV #define USE_MAX7456 +// Added to enable barometer and specify types +#define USE_BARO +#define USE_BARO_BMP280 +#define USE_BARO_DPS310 +#define USE_BARO_MS5611 +// Added to enable magnetometer and specify types +#define USE_MAG +#define USE_MAG_QMC5883 +#define USE_MAG_IST8310 #define BEEPER_PIN PA15 #define MOTOR1_PIN PA0 @@ -101,3 +110,7 @@ #define DEFAULT_ALIGN_BOARD_YAW 45 #define GYRO_1_ALIGN CW270_DEG + +#define MAG_I2C_INSTANCE (I2CDEV_1) +#define BARO_I2C_INSTANCE (I2CDEV_1) +// Defines the I2C instance for magnetometer and barometer