From 5c4440a9ac693c08fdabe871cd65e4ea10b0023d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Jan 2015 22:28:21 +1100 Subject: [PATCH] AC_AttitudeControl: updates for new AP_Baro API --- .../AC_AttitudeControl_test/AC_AttitudeControl_test.pde | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/AC_AttitudeControl/examples/AC_AttitudeControl_test/AC_AttitudeControl_test.pde b/libraries/AC_AttitudeControl/examples/AC_AttitudeControl_test/AC_AttitudeControl_test.pde index a3ba3509b1..a5c89682e6 100644 --- a/libraries/AC_AttitudeControl/examples/AC_AttitudeControl_test/AC_AttitudeControl_test.pde +++ b/libraries/AC_AttitudeControl/examples/AC_AttitudeControl_test/AC_AttitudeControl_test.pde @@ -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