Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
handle/handleGPS.h@7:c75d5e5e6bfc, 2014-04-01 (annotated)
- Committer:
- dylanembed123
- Date:
- Tue Apr 01 15:52:08 2014 +0000
- Revision:
- 7:c75d5e5e6bfc
- Child:
- 8:28b866df62cf
Update handler and adapter;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 7:c75d5e5e6bfc | 1 | #ifndef _HANDLEGPS_H_ |
dylanembed123 | 7:c75d5e5e6bfc | 2 | #define _HANDLEGPS_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 GPSHandle{ |
dylanembed123 | 7:c75d5e5e6bfc | 7 | private: |
dylanembed123 | 7:c75d5e5e6bfc | 8 | GPS gps |
dylanembed123 | 7:c75d5e5e6bfc | 9 | bool initialized; |
dylanembed123 | 7:c75d5e5e6bfc | 10 | |
dylanembed123 | 7:c75d5e5e6bfc | 11 | /// \brief Setup |
dylanembed123 | 7:c75d5e5e6bfc | 12 | void setup(); |
dylanembed123 | 7:c75d5e5e6bfc | 13 | /// \brief Update the GPS locations |
dylanembed123 | 7:c75d5e5e6bfc | 14 | void update(); |
dylanembed123 | 7:c75d5e5e6bfc | 15 | /// \brief Check if it is time to update |
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 |