From 71df1eb94fbb4316ef018492b95bf7c08160b8a0 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 29 Jul 2014 12:00:46 +0900 Subject: [PATCH] AC_Fence: fix example sketch --- libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 01cc3621c3..6991af3934 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 @@ -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 @@ -51,12 +52,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); // Fence AC_Fence fence(&inertial_nav);