QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Thu Apr 03 17:15:29 2014 +0000
Revision:
9:da906eeac51e
Parent:
8:28b866df62cf
Child:
14:6be57da62283
Fix compile errors

Who changed what in which revision?

UserRevisionLine numberNew 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 9:da906eeac51e 5 #include "adapt/gps.h"
dylanembed123 9:da906eeac51e 6 #ifndef _HANDLE_GPS_H_
dylanembed123 9:da906eeac51e 7 #define _HANDLE_GPS_H_
dylanembed123 9:da906eeac51e 8 #include <string>
dylanembed123 9:da906eeac51e 9 #include <sstream>
dylanembed123 7:c75d5e5e6bfc 10 class GPSHandle{
dylanembed123 7:c75d5e5e6bfc 11 private:
dylanembed123 9:da906eeac51e 12 GPS gps;
dylanembed123 7:c75d5e5e6bfc 13 bool initialized;
dylanembed123 7:c75d5e5e6bfc 14
dylanembed123 7:c75d5e5e6bfc 15 /// \brief Setup
dylanembed123 7:c75d5e5e6bfc 16 void setup();
dylanembed123 7:c75d5e5e6bfc 17 /// \brief Check if it is time to update
dylanembed123 7:c75d5e5e6bfc 18 bool check();
dylanembed123 7:c75d5e5e6bfc 19 public:
dylanembed123 7:c75d5e5e6bfc 20 /// \brief Constructor
dylanembed123 9:da906eeac51e 21 GPSHandle():initialized(false){}
dylanembed123 9:da906eeac51e 22
dylanembed123 9:da906eeac51e 23 void sendGpsCommand(std::string command);
stearnsc 8:28b866df62cf 24
stearnsc 8:28b866df62cf 25 //handle incoming com from GPS hardware
stearnsc 8:28b866df62cf 26 void handleUpdate();
stearnsc 8:28b866df62cf 27
dylanembed123 7:c75d5e5e6bfc 28 /// \brief Run an instance of this
dylanembed123 7:c75d5e5e6bfc 29 void run();
dylanembed123 7:c75d5e5e6bfc 30 };
dylanembed123 9:da906eeac51e 31 #endif
dylanembed123 7:c75d5e5e6bfc 32 #endif