mirror of https://github.com/ArduPilot/ardupilot
add IST8310 compass sensors in AP_Compass.cpp
This commit is contained in:
parent
7fad79ca81
commit
c73e7f0cf3
|
@ -856,6 +856,9 @@ void Compass::_detect_backends(void)
|
|||
#elif HAL_COMPASS_DEFAULT == HAL_COMPASS_MAG3110
|
||||
ADD_BACKEND(DRIVER_MAG3110, AP_Compass_MAG3110::probe(*this, hal.i2c_mgr->get_device(HAL_MAG3110_I2C_BUS, HAL_MAG3110_I2C_ADDR), ROTATION_NONE),
|
||||
AP_Compass_MAG3110::name, true);
|
||||
#elif HAL_COMPASS_DEFAULT == HAL_COMPASS_IST8310
|
||||
ADD_BACKEND(DRIVER_IST8310, AP_Compass_IST8310::probe(*this, hal.i2c_mgr->get_device(HAL_COMPASS_IST8310_I2C_BUS, HAL_COMPASS_IST8310_I2C_ADDR),
|
||||
true, ROTATION_PITCH_180_YAW_90), AP_Compass_IST8310::name, true);
|
||||
#elif HAL_COMPASS_DEFAULT == HAL_COMPASS_QMC5883L
|
||||
ADD_BACKEND(DRIVER_QMC5883, AP_Compass_QMC5883L::probe(*this, hal.i2c_mgr->get_device(1, HAL_COMPASS_QMC5883L_I2C_ADDR),
|
||||
true,ROTATION_ROLL_180),
|
||||
|
|
|
@ -141,6 +141,7 @@
|
|||
#define HAL_COMPASS_MAG3110 20
|
||||
#define HAL_COMPASS_BMM150_I2C 21
|
||||
#define HAL_COMPASS_QMC5883L 22
|
||||
#define HAL_COMPASS_IST8310 23
|
||||
|
||||
/* Heat Types */
|
||||
#define HAL_LINUX_HEAT_PWM 1
|
||||
|
|
Loading…
Reference in New Issue