Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
27:e71a2e4e6e3f
Child:
30:a56c141d1d38
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CherryCam.h	Tue Apr 21 13:34:25 2015 +0000
@@ -0,0 +1,24 @@
+#ifndef _H_CHERRYCAM_H
+#define _H_CHERRYCAM_H
+
+#include "mbed.h"
+
+/// Manages the camera used on the CarbonFlyer
+class CherryCam
+{
+public:
+    CherryCam();            ///< Constructor
+    
+    void powerOn();         ///< Turn the camera power on. Takes 10-12 sec to boot up.
+    void powerOff();        ///< Turn the camera power off.
+    void start();           ///< Start video recording. Camera power must be on.
+    void stop();            ///< Stop the video recording.
+    
+private:
+    void generateFallingEdge(DigitalOut &p);
+    DigitalOut powerPin;
+    DigitalOut shutterPin;
+    bool recording;
+};
+
+#endif//_H_CHERRYCAM_H
\ No newline at end of file