359
|
1 /*
|
|
2 * motion.h
|
|
3 *
|
|
4 * Created on: 20.05.2019
|
|
5 * Author: Thorsten Sonntag
|
|
6 */
|
|
7
|
|
8 #ifndef INC_MOTION_H_
|
|
9 #define INC_MOTION_H_
|
|
10
|
|
11
|
|
12 /* exported data types */
|
|
13 typedef enum
|
|
14 {
|
|
15 DETECT_START = 0,
|
|
16 DETECT_POS_MOVE,
|
363
|
17 DETECT_MAXIMA,
|
|
18 DETECT_FALLBACK,
|
|
19 DETECT_POS_SHAKE,
|
359
|
20 DETECT_NEG_MOVE,
|
|
21 DETECT_MINIMA,
|
|
22 DETECT_RISEBACK,
|
|
23 DETECT_NEG_SHAKE,
|
|
24 DETECT_NOTHING
|
|
25 } detectionState_t;
|
|
26
|
|
27 detectionState_t detectShake(float currentPitch);
|
|
28
|
|
29 #endif /* INC_MOTION_H_ */
|