-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecognizer.h
50 lines (40 loc) · 1.18 KB
/
recognizer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef JEDI_H
#define JEDI_H
#include "quaternion.h"
#include "force.h"
//////////////////////////////////////
/// Input data processor
//////////////////////////////////////
/**
* @desc processes rotation from gyroscope (mostly - for positioning)
* @param speed, directly from gyroscope
*/
void jedi_processInput_RotationSpeed(double speed[3], uint32_t gyro_time);
/**
* @desc processes input acceleration (mostly for gesture recognizing)
* @param acceleration, directly from accelerometer
*/
void jedi_processInput_Acceleration(double acceleration[3], uint32_t gyro_time);
//////////////////////////////////////
/// Recognizer processor
//////////////////////////////////////
/**
* @desc Analyzes current angular state
* @return the most probable angular gesture
*/
int jedi_recognizeAngular();
/**
* @desc Analyses current linear state
* @return the most probable linear gesture
*/
int jedi_recognizeLinear();
/**
* @desc Analyses speed
* @return The most probable gesture on this speed
*/
int jedi_analizeSpeed(double sped[3], uint16_t index);
/**
* @desc Initialize positioning quat
*/
void jedi_initQuat();
#endif