mirror of https://github.com/ArduPilot/ardupilot
AC_Sprayer: fixed example build
This commit is contained in:
parent
4fcf46005b
commit
31eeb657ca
|
@ -39,15 +39,11 @@
|
||||||
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
||||||
|
|
||||||
// INS and Baro declaration
|
// INS and Baro declaration
|
||||||
|
AP_InertialSensor ins;
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||||
|
|
||||||
AP_InertialSensor_MPU6000 ins;
|
|
||||||
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
|
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
AP_ADC_ADS7844 adc;
|
AP_ADC_ADS7844 adc;
|
||||||
AP_InertialSensor_Oilpan ins(&adc);
|
|
||||||
AP_Baro_BMP085 baro;
|
AP_Baro_BMP085 baro;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue