Cubic Hand project for EECS 249A course.

Dependencies:   MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811

Revision:
40:bdd949fc3bc2
Parent:
37:996bd22a633f
Child:
41:367cab0162de
--- a/main.cpp	Thu Dec 11 07:10:30 2014 +0000
+++ b/main.cpp	Thu Dec 11 10:18:48 2014 +0000
@@ -4,11 +4,18 @@
 #include "DataGlove.h"
 #include "Glove.h"
 #include "Correction.h"
+#include "GestureRecognition.h"
+#include "CubeUpdateParameters.h"
+#include "ledCube.h" 
 
 #pragma once
 
 DataGlove MasterGlove;
 Correction Correct;
+GestureRecognition gestureSet; 
+LedCube cube; 
+
+
 
 int main() 
 {
@@ -17,6 +24,7 @@
     StatusLED = 0;
     Glove unfiltered;
     Glove filtered;
+    CubeUpdateParameters params; 
     Serial pc(USBTX, USBRX);
     pc.baud(115200);
     pc.printf("Connceted to PC \r\n");
@@ -26,6 +34,8 @@
     {
         unfiltered = MasterGlove.ReceiveBlocking();
         filtered = Correct.Correct(unfiltered);
+        params = gestureSet.sensorToGesture(filtered);
+        cube.UpdateCube(params); 
         //pc.printf("Looping \r\n");
         //wait(0.1);
         if(Counter++%25 == 0)