Cubic Hand project for EECS 249A course.
Dependencies: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
Correction.h@36:4a58639da6cf, 2014-12-11 (annotated)
- Committer:
- naren
- Date:
- Thu Dec 11 07:03:09 2014 +0000
- Revision:
- 36:4a58639da6cf
- Child:
- 41:367cab0162de
Created Correction class; ; This corrects and filters the sensor data
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
naren | 36:4a58639da6cf | 1 | #include "Glove.h" |
naren | 36:4a58639da6cf | 2 | |
naren | 36:4a58639da6cf | 3 | class Correction |
naren | 36:4a58639da6cf | 4 | { |
naren | 36:4a58639da6cf | 5 | public: |
naren | 36:4a58639da6cf | 6 | Correction(); |
naren | 36:4a58639da6cf | 7 | ~Correction(); |
naren | 36:4a58639da6cf | 8 | Glove Correct(Glove gloveData); |
naren | 36:4a58639da6cf | 9 | void Train(Glove gloveData); |
naren | 36:4a58639da6cf | 10 | |
naren | 36:4a58639da6cf | 11 | private: |
naren | 36:4a58639da6cf | 12 | uint16_t count; |
naren | 36:4a58639da6cf | 13 | long initTime; |
naren | 36:4a58639da6cf | 14 | float alpha; |
naren | 36:4a58639da6cf | 15 | // Stores the correction matrix |
naren | 36:4a58639da6cf | 16 | Glove *correction; |
naren | 36:4a58639da6cf | 17 | // Stores the corrected glove values |
naren | 36:4a58639da6cf | 18 | Glove *corrected; |
naren | 36:4a58639da6cf | 19 | }; |