AP_InertialSensor: Add MPU9250 over I2C to detect_backends()

This commit is contained in:
José Roberto de Souza 2015-09-28 13:52:01 -03:00 committed by Andrew Tridgell
parent b3f030f650
commit b3322ed1ae

View File

@ -517,6 +517,10 @@ AP_InertialSensor::_detect_backends(void)
//_add_backend(AP_InertialSensor_L3GD20::detect);
//_add_backend(AP_InertialSensor_LSM303D::detect);
_add_backend(AP_InertialSensor_MPU6000::detect_spi(*this));
#elif HAL_INS_DEFAULT == HAL_INS_MPU9250_I2C
_add_backend(AP_InertialSensor_MPU9250::detect_i2c(*this,
HAL_INS_MPU9250_I2C_POINTER,
HAL_INS_MPU9250_I2C_ADDR));
#else
#error Unrecognised HAL_INS_TYPE setting
#endif