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;