Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Discovery/Inc/motion.h Fri May 24 22:00:38 2019 +0200 @@ -0,0 +1,31 @@ +/* + * motion.h + * + * Created on: 20.05.2019 + * Author: Thorsten Sonntag + */ + +#ifndef INC_MOTION_H_ +#define INC_MOTION_H_ + + +/* exported data types */ +typedef enum +{ + DETECT_START = 0, + DETECT_POS_MOVE, + 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_ */