mirror of https://github.com/ArduPilot/ardupilot
AC_AttitudeControl: updates for new AP_Baro API
This commit is contained in:
parent
b0030126a8
commit
5c4440a9ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue