mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 17:23:56 -04:00
AP_InertialSensor: allow for HAL_INS_NONE
This commit is contained in:
parent
8b3db7c09f
commit
455c0e25e1
@ -890,6 +890,8 @@ AP_InertialSensor::detect_backends(void)
|
|||||||
HAL_INS_DEFAULT_A_ROTATION));
|
HAL_INS_DEFAULT_A_ROTATION));
|
||||||
#elif HAL_INS_DEFAULT == HAL_INS_ICM20789_SPI
|
#elif HAL_INS_DEFAULT == HAL_INS_ICM20789_SPI
|
||||||
ADD_BACKEND(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device("icm20789")));
|
ADD_BACKEND(AP_InertialSensor_Invensense::probe(*this, hal.spi->get_device("icm20789")));
|
||||||
|
#elif HAL_INS_DEFAULT == HAL_INS_NONE
|
||||||
|
// no INS device
|
||||||
#else
|
#else
|
||||||
#error Unrecognised HAL_INS_TYPE setting
|
#error Unrecognised HAL_INS_TYPE setting
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user