From 89cdae62b411e9b940ac064f9c9ae6b9b0dadcf3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 28 Nov 2014 10:40:52 +1100 Subject: [PATCH] AP_AHRS: fixed example build --- libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde index e12b2accc5..74c92afcac 100644 --- a/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde +++ b/libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.pde @@ -29,32 +29,34 @@ #include #include #include +#include +#include +#include #include #include #include +#include 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); #elif CONFIG_HAL_BOARD == HAL_BOARD_APM1 AP_ADC_ADS7844 adc; -AP_Baro_BMP085 baro; -#else -AP_InertialSensor ins; #endif AP_Compass_HMC5843 compass; AP_GPS gps; +AP_Baro_HIL baro; // choose which AHRS system to use AP_AHRS_DCM ahrs(ins, baro, gps); -AP_Baro_HIL barometer; #define HIGH 1