|
|
|
@ -16,6 +16,7 @@
@@ -16,6 +16,7 @@
|
|
|
|
|
#include "AP_InertialSensor_HIL.h" |
|
|
|
|
#include "AP_InertialSensor_L3G4200D.h" |
|
|
|
|
#include "AP_InertialSensor_LSM9DS0.h" |
|
|
|
|
#include "AP_InertialSensor_LSM9DS1.h" |
|
|
|
|
#include "AP_InertialSensor_Invensense.h" |
|
|
|
|
#include "AP_InertialSensor_PX4.h" |
|
|
|
|
#include "AP_InertialSensor_QURT.h" |
|
|
|
@ -684,6 +685,7 @@ AP_InertialSensor::init(uint16_t sample_rate)
@@ -684,6 +685,7 @@ AP_InertialSensor::init(uint16_t sample_rate)
|
|
|
|
|
|
|
|
|
|
bool AP_InertialSensor::_add_backend(AP_InertialSensor_Backend *backend) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
if (!backend) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -849,6 +851,8 @@ AP_InertialSensor::detect_backends(void)
@@ -849,6 +851,8 @@ AP_InertialSensor::detect_backends(void)
|
|
|
|
|
#elif HAL_INS_DEFAULT == HAL_INS_EDGE |
|
|
|
|
ADD_BACKEND(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device(HAL_INS_MPU60x0_NAME), ROTATION_YAW_90)); |
|
|
|
|
ADD_BACKEND(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device(HAL_INS_MPU60x0_NAME_EXT), ROTATION_YAW_90)); |
|
|
|
|
#elif HAL_INS_DEFAULT == HAL_INS_LSM9DS1 |
|
|
|
|
ADD_BACKEND(AP_InertialSensor_LSM9DS1::probe(*this, hal.spi->get_device(HAL_INS_LSM9DS1_NAME))); |
|
|
|
|
#elif HAL_INS_DEFAULT == HAL_INS_LSM9DS0 |
|
|
|
|
ADD_BACKEND(AP_InertialSensor_LSM9DS0::probe(*this, |
|
|
|
|
hal.spi->get_device(HAL_INS_LSM9DS0_G_NAME), |
|
|
|
|