![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Cubic Hand project for EECS 249A course.
Dependencies: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
Diff: main.cpp
- Revision:
- 37:996bd22a633f
- Parent:
- 35:b6fb5dd65a98
- Parent:
- 36:4a58639da6cf
- Child:
- 40:bdd949fc3bc2
--- a/main.cpp Thu Dec 11 06:44:30 2014 +0000 +++ b/main.cpp Thu Dec 11 07:08:47 2014 +0000 @@ -2,16 +2,21 @@ #include "mbed.h" //#include "main.h" #include "DataGlove.h" +#include "Glove.h" +#include "Correction.h" +#pragma once DataGlove MasterGlove; - +Correction Correct; int main() { long Counter = 0; DigitalOut StatusLED(LED1); StatusLED = 0; + Glove unfiltered; + Glove filtered; Serial pc(USBTX, USBRX); pc.baud(115200); pc.printf("Connceted to PC \r\n"); @@ -19,7 +24,8 @@ pc.printf("DataGlove Cube Client\r\n"); while(true) { - MasterGlove.ReceiveBlocking(); + unfiltered = MasterGlove.ReceiveBlocking(); + filtered = Correct.Correct(unfiltered); //pc.printf("Looping \r\n"); //wait(0.1); if(Counter++%25 == 0)