diff --git a/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde b/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde index f0b54fc7fd..49fe54d4ed 100644 --- a/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde +++ b/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde @@ -11,6 +11,7 @@ #include #include // ArduPilot GPS library +#include // GPS glitch protection library #include // ArduPilot Mega Analog to Digital Converter Library #include #include // ArduPilot Mega Barometer Library @@ -48,12 +49,13 @@ AP_Baro_BMP085 baro; // GPS declaration GPS *gps; AP_GPS_Auto auto_gps(&gps); +GPS_Glitch gps_glitch(gps); AP_Compass_HMC5843 compass; AP_AHRS_DCM ahrs(&ins, gps); // Inertial Nav declaration -AP_InertialNav inertial_nav(&ahrs, &ins, &baro, &gps); +AP_InertialNav inertial_nav(&ahrs, &ins, &baro, gps, gps_glitch); // Fence AC_Fence fence(&inertial_nav);