mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
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
|
||||
AP_InertialSensor ins;
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||
AP_ADC_ADS7844 adc;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user