AP_HAL_ChibiOS: add BMI270 and ICM42688 to FlywooF745

This commit is contained in:
Andy Piper 2023-03-22 11:37:43 +00:00 committed by Andrew Tridgell
parent 794335bb26
commit 87a3c34c70
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,8 @@ define HAL_LOGGING_DATAFLASH_ENABLED 1
SPIDEV dataflash SPI1 DEVID1 FLASH_CS MODE3 104*MHZ 104*MHZ
SPIDEV osd SPI2 DEVID2 AT7456E_CS MODE0 10*MHZ 10*MHZ
SPIDEV mpu6000 SPI4 DEVID4 MPU6000_CS MODE3 1*MHZ 4*MHZ
SPIDEV icm42688 SPI4 DEVID4 MPU6000_CS MODE3 1*MHZ 8*MHZ
SPIDEV bmi270 SPI4 DEVID4 MPU6000_CS MODE3 1*MHZ 8*MHZ
# no built-in compass, but probe the i2c bus for all possible
# external compass types
@ -142,6 +144,8 @@ define HAL_I2C_INTERNAL_MASK 0
# one IMU
IMU Invensense SPI:mpu6000 ROTATION_YAW_180
IMU BMI270 SPI:bmi270 ROTATION_PITCH_180
IMU Invensensev3 SPI:icm42688 ROTATION_PITCH_180_YAW_90
define HAL_DEFAULT_INS_FAST_SAMPLE 1
# one BARO