QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
54:fc7c8b5d4d41
Parent:
52:b4dddb28dffa
Child:
58:ea73523cf04b
--- a/handle/mavcommands.h	Sat Apr 26 04:09:11 2014 +0000
+++ b/handle/mavcommands.h	Sat Apr 26 16:26:18 2014 +0000
@@ -2,7 +2,7 @@
 #include "mavcontrol.h"
 #include "adapt/usb.h"
 #include <algorithm>
-
+#include"handle/dataLocation.h"
 typedef struct MAV_REQUEST_LIST_S{
     char targSys;
     char targComp;
@@ -62,9 +62,9 @@
 } MAV_DATA_STREAM;
 
 typedef struct MAV_LOCDATA_S{
+    uint32_t alt;
     uint32_t lat;
     uint32_t lon;
-    uint32_t alt;
     uint16_t x;
     uint16_t y;
     uint16_t z;
@@ -89,6 +89,9 @@
     int readIndex;       // Current index in next cmd (also the size)
     static MavCmd* mavcmd;
     bool initialized;
+    double cLat,cLon,cAlt;
+    bool hasMoved();
+    bool moveValid;
 public:
     MavCmd():initialized(false){}
     char* getNextCmd();