QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Tue Apr 01 15:52:08 2014 +0000
Revision:
7:c75d5e5e6bfc
Child:
9:da906eeac51e
Update handler and adapter;

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 7:c75d5e5e6bfc 6 class ImageHandle{
dylanembed123 7:c75d5e5e6bfc 7 private:
dylanembed123 7:c75d5e5e6bfc 8 Camera cam;
dylanembed123 7:c75d5e5e6bfc 9 bool initialized;
dylanembed123 7:c75d5e5e6bfc 10
dylanembed123 7:c75d5e5e6bfc 11 /// \brief Setup the camera.
dylanembed123 7:c75d5e5e6bfc 12 void setup();
dylanembed123 7:c75d5e5e6bfc 13 /// \brief Take an image and send it over USB
dylanembed123 7:c75d5e5e6bfc 14 void take();
dylanembed123 7:c75d5e5e6bfc 15 /// \brief Check if an image must be taken
dylanembed123 7:c75d5e5e6bfc 16 bool check();
dylanembed123 7:c75d5e5e6bfc 17 public:
dylanembed123 7:c75d5e5e6bfc 18 /// \brief Constructor
dylanembed123 7:c75d5e5e6bfc 19 ImageHandle():initialized(false){}
dylanembed123 7:c75d5e5e6bfc 20 /// \brief Run an instance of this
dylanembed123 7:c75d5e5e6bfc 21 void run();
dylanembed123 7:c75d5e5e6bfc 22 };
dylanembed123 7:c75d5e5e6bfc 23
dylanembed123 7:c75d5e5e6bfc 24 #endif