mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_InertialSensor: Add MPU9250 over I2C to detect_backends()
This commit is contained in:
parent
b3f030f650
commit
b3322ed1ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user