QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Thu Apr 10 05:38:45 2014 +0000
Revision:
15:e3e03a9df89e
Parent:
14:6be57da62283
Child:
20:81d5655fecc2
Demo prep - The GPS, camera and XBEE stream with packet work.

Who changed what in which revision?

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