Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of dgps by
handle/handleCamera.h
- Committer:
- dylanembed123
- Date:
- 2014-04-07
- Revision:
- 13:a6d3cf2b018e
- Parent:
- 12:e42985e3ea64
- Child:
- 15:e3e03a9df89e
File content as of revision 13:a6d3cf2b018e:
#ifndef _TAKEIMAGE_H_ #define _TAKEIMAGE_H_ #include "adapt/usb.h" #include "adapt/xbee.h" #include "adapt/camera.h" #include "packet.h" #include <algorithm> class ImageHandle{ private: Camera cam; bool initialized; Serial& outputDevice; /// \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),outputDevice(USB::getSerial()){} /// \brief Run an instance of this void run(); }; #endif