Cubic Hand project for EECS 249A course.

Dependencies:   MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811

Revision:
41:367cab0162de
Parent:
40:bdd949fc3bc2
Child:
43:cf824a44a040
--- a/main.cpp	Thu Dec 11 10:18:48 2014 +0000
+++ b/main.cpp	Thu Dec 11 12:08:27 2014 +0000
@@ -1,4 +1,3 @@
-
 #include "mbed.h"
 //#include "main.h"
 #include "DataGlove.h"
@@ -20,8 +19,8 @@
 int main() 
 {
     long Counter = 0;
-    DigitalOut StatusLED(LED1);
-    StatusLED = 0;
+    //DigitalOut StatusLED(LED2);
+    //StatusLED = 0;
     Glove unfiltered;
     Glove filtered;
     CubeUpdateParameters params; 
@@ -29,18 +28,26 @@
     pc.baud(115200);
     pc.printf("Connceted to PC \r\n");
     MasterGlove.Init();
+    cube.Init(0,0,0);
     pc.printf("DataGlove Cube Client\r\n");
+    
+    //cube.cubeUpdate();
     while(true) 
     {
         unfiltered = MasterGlove.ReceiveBlocking();
         filtered = Correct.Correct(unfiltered);
-        params = gestureSet.sensorToGesture(filtered);
+        //params = gestureSet.sensorToGesture(filtered);
+        params.size = 2;
+        params.deltaX = 0;
+        params.deltaY = 0;
+        params.deltaZ = 0;
+        params.hue = 0.5;
         cube.UpdateCube(params); 
         //pc.printf("Looping \r\n");
         //wait(0.1);
-        if(Counter++%25 == 0)
+        /*if(Counter++%25 == 0)
         {
             StatusLED = !StatusLED;
-        }
+        }*/
      }
 }