Cubic Hand project for EECS 249A course.

Dependencies:   MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811

Revision:
23:a8de4f87cada
Parent:
22:0cc5b7e55419
Child:
26:42ae7eed0b68
diff -r 0cc5b7e55419 -r a8de4f87cada DataGlove.h
--- a/DataGlove.h	Thu Dec 11 04:07:54 2014 +0000
+++ b/DataGlove.h	Thu Dec 11 04:17:46 2014 +0000
@@ -20,6 +20,12 @@
 		~DataGlove();
 		void Init();
 		void Receive();
+		
+		//Returns the latest glove values in a structure.
+		Glove GetCurrentValues();
+		//Returns true if new data since last function call, false otherwise. 
+		bool CheckForNewValues();
+		
         int16_t finger1, finger2, finger3, finger4, finger5;
         int16_t accelx, accely, accelz;
         int16_t gyrox, gyroy, gyroz;
@@ -39,6 +45,7 @@
 	    int q0, q1, q2, q3;
 	    double q00, q11, q22, q33;
 	    long ReceiveCount;
+	    bool NewData;
 	    // Stores glove data
 		Glove *gl;
 		// Stores the correction matrix