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@9:da906eeac51e, 2014-04-03 (annotated)
- Committer:
- dylanembed123
- Date:
- Thu Apr 03 17:15:29 2014 +0000
- Revision:
- 9:da906eeac51e
- Parent:
- 7:c75d5e5e6bfc
- Child:
- 12:e42985e3ea64
Fix compile errors
Who changed what in which revision?
User | Revision | Line number | New 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 | 9:da906eeac51e | 6 | #include <algorithm> |
dylanembed123 | 7:c75d5e5e6bfc | 7 | class ImageHandle{ |
dylanembed123 | 7:c75d5e5e6bfc | 8 | private: |
dylanembed123 | 7:c75d5e5e6bfc | 9 | Camera cam; |
dylanembed123 | 7:c75d5e5e6bfc | 10 | bool initialized; |
dylanembed123 | 7:c75d5e5e6bfc | 11 | |
dylanembed123 | 7:c75d5e5e6bfc | 12 | /// \brief Setup the camera. |
dylanembed123 | 7:c75d5e5e6bfc | 13 | void setup(); |
dylanembed123 | 7:c75d5e5e6bfc | 14 | /// \brief Take an image and send it over USB |
dylanembed123 | 7:c75d5e5e6bfc | 15 | void take(); |
dylanembed123 | 7:c75d5e5e6bfc | 16 | /// \brief Check if an image must be taken |
dylanembed123 | 7:c75d5e5e6bfc | 17 | bool check(); |
dylanembed123 | 7:c75d5e5e6bfc | 18 | public: |
dylanembed123 | 7:c75d5e5e6bfc | 19 | /// \brief Constructor |
dylanembed123 | 7:c75d5e5e6bfc | 20 | ImageHandle():initialized(false){} |
dylanembed123 | 7:c75d5e5e6bfc | 21 | /// \brief Run an instance of this |
dylanembed123 | 7:c75d5e5e6bfc | 22 | void run(); |
dylanembed123 | 7:c75d5e5e6bfc | 23 | }; |
dylanembed123 | 7:c75d5e5e6bfc | 24 | |
dylanembed123 | 7:c75d5e5e6bfc | 25 | #endif |