Colin Stearns / Mbed 2 deprecated dgps

Dependencies:   mbed

Revision:
4:c75d5e5e6bfc
Child:
6:f0248eb6714d
diff -r 434d20e99e49 -r c75d5e5e6bfc handle/handleCamera.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/handle/handleCamera.h	Tue Apr 01 15:52:08 2014 +0000
@@ -0,0 +1,24 @@
+#ifndef _TAKEIMAGE_H_
+#define _TAKEIMAGE_H_
+
+#include "adapt/usb.h"
+#include "adapt/camera.h"
+class ImageHandle{
+private:
+    Camera cam;
+    bool initialized;
+    
+    /// \brief Setup the camera.
+    void setup();
+    /// \brief Take an image and send it over USB
+    void take();
+    /// \brief Check if an image must be taken
+    bool check();
+public:
+    /// \brief Constructor
+    ImageHandle():initialized(false){}
+    /// \brief Run an instance of this
+    void run();
+};
+
+#endif
\ No newline at end of file