AP_Compass: support PCNC1

This commit is contained in:
Andrew Tridgell 2017-06-21 17:03:13 +10:00
parent b2172a0475
commit 2cc0f25ca0

View File

@ -650,6 +650,12 @@ void Compass::_detect_backends(void)
}
break;
case AP_BoardConfig::PX4_BOARD_PCNC1:
ADD_BACKEND(DRIVER_BMM150,
AP_Compass_BMM150::probe(*this, hal.i2c_mgr->get_device(0, 0x10)),
AP_Compass_BMM150::name, true);
break;
case AP_BoardConfig::PX4_BOARD_AEROFC:
#ifdef HAL_COMPASS_IST8310_I2C_BUS
ADD_BACKEND(DRIVER_IST8310, AP_Compass_IST8310::probe(*this, hal.i2c_mgr->get_device(HAL_COMPASS_IST8310_I2C_BUS, HAL_COMPASS_IST8310_I2C_ADDR),