mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: fixed example build on APM2
This commit is contained in:
parent
48abfcede7
commit
38c1b622f3
|
@ -43,9 +43,7 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
|
||||||
// INS and Baro declaration
|
// INS and Baro declaration
|
||||||
AP_InertialSensor ins;
|
AP_InertialSensor ins;
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||||
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
|
|
||||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
|
||||||
AP_ADC_ADS7844 adc;
|
AP_ADC_ADS7844 adc;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue