Cubic Hand project for EECS 249A course.
Dependencies: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
Diff: DataGlove.h
- Revision:
- 18:6737bf53ccd1
- Parent:
- 15:b48ac00af0b8
- Child:
- 19:e751d075e2e6
--- a/DataGlove.h Mon Dec 08 03:29:39 2014 +0000 +++ b/DataGlove.h Mon Dec 08 18:56:42 2014 +0000 @@ -19,14 +19,12 @@ DataGlove(); ~DataGlove(); void Init(); - void StreamData(); void Receive(); int16_t finger1, finger2, finger3, finger4, finger5; int16_t accelx, accely, accelz; int16_t gyrox, gyroy, gyroz; private: - void Parse(); uint8_t SendBuf[20]; int16_t notConnectedCount; int8_t numReceived; @@ -40,8 +38,16 @@ double norm, test; int q0, q1, q2, q3; double q00, q11, q22, q33; + long ReceiveCount; Glove *gl; GloveWifi GloveSocket; - - + + private: + void Parse(); + void StreamData(uint8_t DataType); + void ExtractFingersQuat(); + void ExtractQuat(); + void ExtractFingersRaw(); + void ExtractRaw(); + void ExtractFingers(); }; \ No newline at end of file