From 55ec3167186b42606ff0b6fae55b0f832a02d4ce Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <andrew@tridgell.net> Date: Mon, 5 Jan 2015 22:28:26 +1100 Subject: [PATCH] AC_Fence: updates for new AP_Baro API --- .../AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde b/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde index 9fa50135b..1d426a390 100644 --- a/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde +++ b/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde @@ -39,14 +39,12 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; AP_InertialSensor ins; -// INS and Baro declaration -#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 -AP_Baro_MS5611 baro(&AP_Baro_MS5611::spi); -#else +#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 AP_ADC_ADS7844 adc; -AP_Baro_BMP085 baro; #endif +AP_Baro baro; + // GPS declaration AP_GPS gps; GPS_Glitch gps_glitch(gps); -- GitLab