QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
17:323fc40376d5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/handle/handleCompass.cpp	Thu Apr 03 17:18:58 2014 +0000
@@ -0,0 +1,16 @@
+#include "handleCompass.h"
+
+compassHandle::compassHandle(){
+    heading = 0;
+    setup();
+}
+
+compassHandle::setup(){
+    compass.init();
+    compass.enableDefault();
+}
+
+compassHandle::run(){
+    compass.read();
+    heading = compass.get_heading();
+}
\ No newline at end of file