Skip to content
Snippets Groups Projects
Commit 5c4440a9 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AC_AttitudeControl: updates for new AP_Baro API

parent b0030126
No related branches found
No related tags found
No related merge requests found
...@@ -46,11 +46,9 @@ static AP_Vehicle::MultiCopter aparm; ...@@ -46,11 +46,9 @@ static AP_Vehicle::MultiCopter aparm;
// INS and Baro declaration // INS and Baro declaration
AP_InertialSensor ins; AP_InertialSensor ins;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 AP_Baro baro;
AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi); #if CONFIG_HAL_BOARD == HAL_BOARD_APM1
#else
AP_ADC_ADS7844 apm1_adc; AP_ADC_ADS7844 apm1_adc;
AP_Baro_BMP085 baro;
#endif #endif
// GPS declaration // GPS declaration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment