diff 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
line wrap: on
line diff
--- a/Discovery/Inc/motion.h	Tue Jun 11 05:31:07 2019 +0200
+++ b/Discovery/Inc/motion.h	Mon Jun 17 19:46:18 2019 +0200
@@ -14,18 +14,16 @@
 {
 		DETECT_START = 0,
 		DETECT_POS_MOVE,
+		DETECT_MAXIMA,
+		DETECT_FALLBACK,
+		DETECT_POS_SHAKE,
 		DETECT_NEG_MOVE,
-		DETECT_MAXIMA,
 		DETECT_MINIMA,
-		DETECT_FALLBACK,
 		DETECT_RISEBACK,
-		DETECT_POS_SHAKE,
 		DETECT_NEG_SHAKE,
 		DETECT_NOTHING
 } detectionState_t;
 
-
-void InitMotion(void);
 detectionState_t detectShake(float currentPitch);
 
 #endif /* INC_MOTION_H_ */