Skip to content

Commit

Permalink
Update config.h TAKERG4AIO (#500)
Browse files Browse the repository at this point in the history
* Update config.h TAKERG4AIO

Defines the I2C instance for mag and Baro, And added some Baro and Mag

* Update configs/TAKERG4AIO/config.h

Co-authored-by: Mark Haslinghuis <[email protected]>

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
  • Loading branch information
Greypang and haslinghuis authored Jul 18, 2024
1 parent a8dd16a commit 6d6eb7b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions configs/TAKERG4AIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@
#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
#ifndef USE_MAG
#define USE_MAG
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#endif

#define BEEPER_PIN PA15
#define MOTOR1_PIN PA0
Expand Down Expand Up @@ -101,3 +112,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

0 comments on commit 6d6eb7b

Please sign in to comment.