Colin Stearns / Mbed 2 deprecated dgps

Dependencies:   mbed

handle/handleCamera.h

Committer:
dylanembed123
Date:
2014-04-03
Revision:
6:f0248eb6714d
Parent:
4:c75d5e5e6bfc

File content as of revision 6:f0248eb6714d:

#ifndef _TAKEIMAGE_H_
#define _TAKEIMAGE_H_

#include "adapt/usb.h"
#include "adapt/camera.h"
#include <algorithm>
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