QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
20:81d5655fecc2
Parent:
15:e3e03a9df89e
Child:
32:9cb7bc3fc9e0
--- a/handle/handleGPS.h	Sun Apr 20 22:01:05 2014 +0000
+++ b/handle/handleGPS.h	Tue Apr 22 04:26:31 2014 +0000
@@ -9,8 +9,14 @@
 #include "dataLocation.h"
 #include <mbed.h>
 #include "gps.h"
+#include "packet.h"
 #define MAXREADIN 256
 
+typedef struct _Point{
+    double lat;
+    double lon;
+} Point;
+
 class GPSHandle{
 private:
     //GPS gps;
@@ -31,6 +37,23 @@
     
     /// \brief Run an instance of this
     void run();
+    
+    /// \brief sends the current location
+    void sendLoc();
+    
+    /// \brief checks if in image area
+    bool if_image_location();
+    
+    /// \brief read in the waypoints
+    char readWaypoints();
+    
+    static GPSHandle* hand;
+    static GPSHandle& getGPSHand(){
+        if(hand == NULL){
+            hand = new GPSHandle();
+        }
+        return *hand;
+    }
 };
 
 #endif
\ No newline at end of file