comparison Discovery/Inc/motion.h @ 363:bdf978d2a5d4 MotionDetection

Reworked detection function The first implementation was not stable enough during underwater tests => redesign taking speed deltas into account
author ideenmodellierer
date Mon, 17 Jun 2019 19:46:18 +0200
parents 4258ea9b67fa
children 77cdfbdaca8c
comparison
equal deleted inserted replaced
362:7b8c87a39c0e 363:bdf978d2a5d4
12 /* exported data types */ 12 /* exported data types */
13 typedef enum 13 typedef enum
14 { 14 {
15 DETECT_START = 0, 15 DETECT_START = 0,
16 DETECT_POS_MOVE, 16 DETECT_POS_MOVE,
17 DETECT_MAXIMA,
18 DETECT_FALLBACK,
19 DETECT_POS_SHAKE,
17 DETECT_NEG_MOVE, 20 DETECT_NEG_MOVE,
18 DETECT_MAXIMA,
19 DETECT_MINIMA, 21 DETECT_MINIMA,
20 DETECT_FALLBACK,
21 DETECT_RISEBACK, 22 DETECT_RISEBACK,
22 DETECT_POS_SHAKE,
23 DETECT_NEG_SHAKE, 23 DETECT_NEG_SHAKE,
24 DETECT_NOTHING 24 DETECT_NOTHING
25 } detectionState_t; 25 } detectionState_t;
26 26
27
28 void InitMotion(void);
29 detectionState_t detectShake(float currentPitch); 27 detectionState_t detectShake(float currentPitch);
30 28
31 #endif /* INC_MOTION_H_ */ 29 #endif /* INC_MOTION_H_ */