AP_Baro: enable 20789 baro on F412

This commit is contained in:
Andrew Tridgell 2018-01-07 15:02:18 +11:00
parent b702dd5342
commit a3dabf3c55
1 changed files with 3 additions and 0 deletions

View File

@ -520,6 +520,9 @@ void AP_Baro::init(void)
#elif HAL_BARO_DEFAULT == HAL_BARO_LPS25H
ADD_BACKEND(AP_Baro_LPS25H::probe(*this,
std::move(hal.i2c_mgr->get_device(HAL_BARO_LPS25H_I2C_BUS, HAL_BARO_LPS25H_I2C_ADDR))));
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_CHIBIOS_SKYVIPER_F412
ADD_BACKEND(AP_Baro_ICM20789::probe(*this,
std::move(hal.i2c_mgr->get_device(1, 0x63))));
#endif
// can optionally have baro on I2C too