AC_AttitudeControl: updates for new AP_Baro API

This commit is contained in:
Andrew Tridgell 2015-01-05 22:28:21 +11:00
parent b0030126a8
commit 5c4440a9ac
1 changed files with 2 additions and 4 deletions

View File

@ -46,11 +46,9 @@ static AP_Vehicle::MultiCopter aparm;
// INS and Baro declaration
AP_InertialSensor ins;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi);
#else
AP_Baro baro;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
AP_ADC_ADS7844 apm1_adc;
AP_Baro_BMP085 baro;
#endif
// GPS declaration