Colin Stearns / Mbed 2 deprecated qcControl

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Sat Apr 05 22:27:18 2014 +0000
Revision:
12:e42985e3ea64
Parent:
9:da906eeac51e
Child:
13:a6d3cf2b018e
Update packet.h (interface to other c++ code).

Who changed what in which revision?

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