AP_HAL_ChibiOS: probe for compasses on FlywooF745

This commit is contained in:
Andy Piper 2021-08-04 21:48:03 +01:00 committed by Andrew Tridgell
parent 3d68d9c32a
commit 7dea029626
1 changed files with 3 additions and 1 deletions

View File

@ -131,9 +131,11 @@ SPIDEV dataflash SPI1 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
SPIDEV osd SPI2 DEVID2 AT7456E_CS MODE0 10*MHZ 10*MHZ SPIDEV osd SPI2 DEVID2 AT7456E_CS MODE0 10*MHZ 10*MHZ
SPIDEV mpu6000 SPI4 DEVID4 MPU6000_CS MODE3 1*MHZ 4*MHZ SPIDEV mpu6000 SPI4 DEVID4 MPU6000_CS MODE3 1*MHZ 4*MHZ
# no built-in compass and no external I2C so no compass # no built-in compass, but probe the i2c bus for all possible
# external compass types
define ALLOW_ARM_NO_COMPASS define ALLOW_ARM_NO_COMPASS
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
define HAL_I2C_INTERNAL_MASK 0 define HAL_I2C_INTERNAL_MASK 0
# one IMU # one IMU