Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed
Fork of CubicHand by
Diff: DataGlove.h
- Revision:
- 23:a8de4f87cada
- Parent:
- 22:0cc5b7e55419
- Child:
- 28:42ae7eed0b68
--- 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
