Temp Fork
Dependencies: MMA8451Q Multi_WS2811 NVIC_set_all_priorities TSI cc3000_hostdriver_mbedsocket mbed
Fork of CubicHand by
DataGlove.h
- Committer:
- kalbers
- Date:
- 2014-12-07
- Revision:
- 15:b48ac00af0b8
- Parent:
- 14:0c4a26dc6873
- Child:
- 18:6737bf53ccd1
File content as of revision 15:b48ac00af0b8:
#include "GloveWifi.h" #pragma once struct Glove { double roll; double pitch; double yaw; double fingers[5]; double gyro[3]; double magn[3]; double accel[3]; int lastPkgTime; }; class DataGlove { public: 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; uint8_t Buf[256], buffer[256]; bool raw; unsigned char bcc; int pkglen, u; int timeOfArrival, id, pkgtype; int j, k, y; double roll, yaw, pitch; double norm, test; int q0, q1, q2, q3; double q00, q11, q22, q33; Glove *gl; GloveWifi GloveSocket; };