From 2951fb50e9ba0fee4f233be65cb76635b7d5ce71 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 29 Jul 2014 11:51:49 +0900 Subject: [PATCH] InertialNav: fix example sketch --- .../examples/AP_InertialNav_test/AP_InertialNav_test.pde | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/AP_InertialNav/examples/AP_InertialNav_test/AP_InertialNav_test.pde b/libraries/AP_InertialNav/examples/AP_InertialNav_test/AP_InertialNav_test.pde index c7328f08cf..17763284cb 100644 --- a/libraries/AP_InertialNav/examples/AP_InertialNav_test/AP_InertialNav_test.pde +++ b/libraries/AP_InertialNav/examples/AP_InertialNav_test/AP_InertialNav_test.pde @@ -12,6 +12,7 @@ #include // ArduPilot Mega Analog to Digital Converter Library #include #include // ArduPilot Mega Barometer Library +#include // Baro glitch protection library #include #include // ArduPilot Mega Magnetometer Library #include @@ -28,8 +29,8 @@ #include #include #include - #include + const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; #if CONFIG_HAL_BOARD == HAL_BOARD_APM2 @@ -46,11 +47,12 @@ AP_Baro_BMP085 baro; AP_GPS gps; GPS_Glitch gps_glitch(gps); +Baro_Glitch baro_glitch(baro); AP_Compass_HMC5843 compass; AP_AHRS_DCM ahrs(ins, baro, gps); -AP_InertialNav inertialnav(ahrs, baro, gps_glitch); +AP_InertialNav inertialnav(ahrs, baro, gps_glitch, baro_glitch); uint32_t last_update;