AP_Compass: Enable AK09916 inside the ICM20948

This commit is contained in:
Phillip Kocmoud 2019-05-08 21:40:59 -05:00 committed by Andrew Tridgell
parent 9b43870ffe
commit 1f827004be
1 changed files with 2 additions and 0 deletions

View File

@ -938,6 +938,8 @@ void Compass::_detect_backends(void)
ADD_BACKEND(DRIVER_LSM9DS1, AP_Compass_LSM9DS1::probe(hal.spi->get_device("lsm9ds1_m")));
#elif HAL_COMPASS_DEFAULT == HAL_COMPASS_BMM150_I2C
ADD_BACKEND(DRIVER_BMM150, AP_Compass_BMM150::probe(GET_I2C_DEVICE(HAL_COMPASS_BMM150_I2C_BUS, HAL_COMPASS_BMM150_I2C_ADDR)));
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_CHIBIOS_MROCONTROLZEROF7
ADD_BACKEND(DRIVER_AK09916, AP_Compass_AK09916::probe_ICM20948(0, ROTATION_ROLL_180));
#elif HAL_COMPASS_DEFAULT == HAL_COMPASS_NONE
// no compass
#else