AP_InertialSensor: support MindPX-v2

This commit is contained in:
Andrew Tridgell 2018-01-12 08:27:02 +11:00
parent 8699b6233a
commit dcab40459d
1 changed files with 10 additions and 0 deletions

View File

@ -775,6 +775,16 @@ AP_InertialSensor::detect_backends(void)
_add_backend(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device(HAL_INS_MPU6500_NAME), ROTATION_YAW_270));
break;
case AP_BoardConfig::PX4_BOARD_MINDPXV2:
_add_backend(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device(HAL_INS_MPU6500_NAME), ROTATION_NONE));
_add_backend(AP_InertialSensor_LSM9DS0::probe(*this,
hal.spi->get_device(HAL_INS_LSM9DS0_G_NAME),
hal.spi->get_device(HAL_INS_LSM9DS0_A_NAME),
ROTATION_NONE,
ROTATION_NONE,
ROTATION_NONE));
break;
default:
break;
}