From 4754ecc9e24488678d8d19840b72520e73a382c9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 12 Mar 2015 20:10:10 +0900 Subject: [PATCH] AC_Fence: remove example sketch This only tested compiling anyway --- .../examples/AC_Fence_test/AC_Fence_test.pde | 76 ------------------- .../AC_Fence/examples/AC_Fence_test/Makefile | 1 - .../examples/AC_Fence_test/nobuild.txt | 0 .../examples/AC_Fence_test/nocore.inoflag | 0 4 files changed, 77 deletions(-) delete mode 100644 libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde delete mode 100644 libraries/AC_Fence/examples/AC_Fence_test/Makefile delete mode 100644 libraries/AC_Fence/examples/AC_Fence_test/nobuild.txt delete mode 100644 libraries/AC_Fence/examples/AC_Fence_test/nocore.inoflag 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 deleted file mode 100644 index f6a1a76660..0000000000 --- a/libraries/AC_Fence/examples/AC_Fence_test/AC_Fence_test.pde +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Example of AC_Fence library . - * DIYDrones.com - */ - -#include -#include -#include // ArduPilot Mega Vector/Matrix math Library -#include -#include -#include - -#include // ArduPilot GPS library -#include // GPS glitch protection library -#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 -#include // ArduPilot Mega Inertial Sensor (accel & gyro) Library -#include -#include -#include // PID library -#include // P library -#include // ArduPilot general purpose FIFO buffer -#include // Inertial Navigation library -#include // Fence library -#include -#include -#include -#include -#include -#include -#include -#include -#include - -const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; - -AP_InertialSensor ins; - -#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 -AP_ADC_ADS7844 adc; -#endif - -AP_Baro 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, baro_glitch); - -// Fence -AC_Fence fence(&inertial_nav); - -void setup() -{ - hal.console->println("AC_Fence library test"); -} - -void loop() -{ - // print message to user - hal.console->printf_P(PSTR("this example tests compilation only")); - hal.scheduler->delay(5000); -} - -AP_HAL_MAIN(); diff --git a/libraries/AC_Fence/examples/AC_Fence_test/Makefile b/libraries/AC_Fence/examples/AC_Fence_test/Makefile deleted file mode 100644 index f5daf25151..0000000000 --- a/libraries/AC_Fence/examples/AC_Fence_test/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../../../../mk/apm.mk diff --git a/libraries/AC_Fence/examples/AC_Fence_test/nobuild.txt b/libraries/AC_Fence/examples/AC_Fence_test/nobuild.txt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/libraries/AC_Fence/examples/AC_Fence_test/nocore.inoflag b/libraries/AC_Fence/examples/AC_Fence_test/nocore.inoflag deleted file mode 100644 index e69de29bb2..0000000000