From d4cb51d8f762b35961f27c815cc764fd1555e326 Mon Sep 17 00:00:00 2001
From: Randy Mackay <rmackay9@yahoo.com>
Date: Tue, 1 Apr 2014 20:58:20 +0900
Subject: [PATCH] AP_Parachute: add example sketch

Only tests that the lib compiles
---
 .../AP_Parachute_test/AP_Parachute_test.pde   | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.pde

diff --git a/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.pde b/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.pde
new file mode 100644
index 000000000..ddf2ee61f
--- /dev/null
+++ b/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.pde
@@ -0,0 +1,36 @@
+/*
+ *       Example of AP_Parachute library.
+ *       DIYDrones.com
+ */
+
+#include <AP_Common.h>
+#include <AP_Progmem.h>
+#include <AP_Math.h>            // ArduPilot Mega Vector/Matrix math Library
+#include <AP_Param.h>
+#include <AP_HAL.h>
+#include <AP_HAL_AVR.h>
+#include <RC_Channel.h>
+#include <AP_Relay.h>
+#include <AP_Parachute.h>
+
+const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
+
+// Relay
+AP_Relay relay;
+
+// Parachute
+AP_Parachute parachute(relay);
+
+void setup()
+{
+    hal.console->println("AP_Parachute 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();
-- 
GitLab