diff --git a/libraries/AC_Sprayer/examples/AC_Sprayer_test/AC_Sprayer_test.pde b/libraries/AC_Sprayer/examples/AC_Sprayer_test/AC_Sprayer_test.pde index fbe35f83b3..0d03ac933c 100644 --- a/libraries/AC_Sprayer/examples/AC_Sprayer_test/AC_Sprayer_test.pde +++ b/libraries/AC_Sprayer/examples/AC_Sprayer_test/AC_Sprayer_test.pde @@ -15,6 +15,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 @@ -52,12 +53,13 @@ AP_Baro_BMP085 baro; // GPS declaration AP_GPS gps; GPS_Glitch gps_glitch(gps); +Baro_Glitch baro_glitch(baro); AP_Compass_HMC5843 compass; AP_AHRS_DCM ahrs(ins, baro, gps); // Inertial Nav declaration -AP_InertialNav inertial_nav(ahrs, baro, gps_glitch); +AP_InertialNav inertial_nav(ahrs, baro, gps_glitch, baro_glitch); // Sprayer AC_Sprayer sprayer(&inertial_nav);