Colin Stearns / Mbed 2 deprecated dgps

Dependencies:   mbed

Committer:
dylanembed123
Date:
Thu Apr 03 16:27:23 2014 +0000
Revision:
6:f0248eb6714d
Parent:
4:c75d5e5e6bfc
Fix compile errors;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dylanembed123 4:c75d5e5e6bfc 1 #ifndef _TAKEIMAGE_H_
dylanembed123 4:c75d5e5e6bfc 2 #define _TAKEIMAGE_H_
dylanembed123 4:c75d5e5e6bfc 3
dylanembed123 4:c75d5e5e6bfc 4 #include "adapt/usb.h"
dylanembed123 4:c75d5e5e6bfc 5 #include "adapt/camera.h"
dylanembed123 6:f0248eb6714d 6 #include <algorithm>
dylanembed123 4:c75d5e5e6bfc 7 class ImageHandle{
dylanembed123 4:c75d5e5e6bfc 8 private:
dylanembed123 4:c75d5e5e6bfc 9 Camera cam;
dylanembed123 4:c75d5e5e6bfc 10 bool initialized;
dylanembed123 4:c75d5e5e6bfc 11
dylanembed123 4:c75d5e5e6bfc 12 /// \brief Setup the camera.
dylanembed123 4:c75d5e5e6bfc 13 void setup();
dylanembed123 4:c75d5e5e6bfc 14 /// \brief Take an image and send it over USB
dylanembed123 4:c75d5e5e6bfc 15 void take();
dylanembed123 4:c75d5e5e6bfc 16 /// \brief Check if an image must be taken
dylanembed123 4:c75d5e5e6bfc 17 bool check();
dylanembed123 4:c75d5e5e6bfc 18 public:
dylanembed123 4:c75d5e5e6bfc 19 /// \brief Constructor
dylanembed123 4:c75d5e5e6bfc 20 ImageHandle():initialized(false){}
dylanembed123 4:c75d5e5e6bfc 21 /// \brief Run an instance of this
dylanembed123 4:c75d5e5e6bfc 22 void run();
dylanembed123 4:c75d5e5e6bfc 23 };
dylanembed123 4:c75d5e5e6bfc 24
dylanembed123 4:c75d5e5e6bfc 25 #endif