From 25f69f05eb04b053e6d677aa8e2d6d2116f42f59 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Jan 2015 22:28:39 +1100 Subject: [PATCH] AC_WPNav: updates for new AP_Baro API --- .../AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde b/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde index 43c85d3faa..32a8a1af46 100644 --- a/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde +++ b/libraries/AC_WPNav/examples/AC_WPNav_test/AC_WPNav_test.pde @@ -44,13 +44,13 @@ const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; // INS and Baro declaration AP_InertialSensor ins; -#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);