QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
44:2ae602b89961
Parent:
10:c4745ddaaf6a
--- a/handle/handleCompass.h	Wed Apr 23 04:20:40 2014 +0000
+++ b/handle/handleCompass.h	Wed Apr 23 04:45:36 2014 +0000
@@ -2,6 +2,7 @@
 #define _HANDLECOMPASS_H_
 
 #include "adapt/compass.h"
+#include "adapt/usb.h"
 
 class compassHandle {
 public:
@@ -24,11 +25,22 @@
     * \brief gets an updated heading
     **/
     void run();
+    
+    static compassHandle* hand;
+    static compassHandle& getCompassHand(){
+        if(hand == NULL){
+            hand = new compassHandle();
+        }
+        return *hand;
+    }
+    
 private:
     /**
     * \brief reference to the compass adaptor
     **/
     Compass compass;
+    
+    bool initialized;
 };
 
 #endif
\ No newline at end of file