comparison Discovery/Inc/motion.h @ 359:4258ea9b67fa MotionDetection

Added new files for motion detection (shaking) detection
author ideenmodellierer
date Fri, 24 May 2019 22:00:38 +0200
parents
children bdf978d2a5d4
comparison
equal deleted inserted replaced
299:b70c26be71a0 359:4258ea9b67fa
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,
17 DETECT_NEG_MOVE,
18 DETECT_MAXIMA,
19 DETECT_MINIMA,
20 DETECT_FALLBACK,
21 DETECT_RISEBACK,
22 DETECT_POS_SHAKE,
23 DETECT_NEG_SHAKE,
24 DETECT_NOTHING
25 } detectionState_t;
26
27
28 void InitMotion(void);
29 detectionState_t detectShake(float currentPitch);
30
31 #endif /* INC_MOTION_H_ */