mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_InertialSensor: add LSM9DS1 entry
Enable LSM9DS1 in case it is selected
This commit is contained in:
parent
5cf15db966
commit
e6d4b2a087
@ -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)
|
||||
|
||||
bool AP_InertialSensor::_add_backend(AP_InertialSensor_Backend *backend)
|
||||
{
|
||||
|
||||
if (!backend) {
|
||||
return false;
|
||||
}
|
||||
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user