comparison Discovery/Inc/motion.h @ 371:fca370f847f8 MotionDetection

Added parameter for number of sectors to be defined
author ideenmodellierer
date Mon, 19 Aug 2019 17:39:47 +0200
parents 77cdfbdaca8c
children 7b981f8bdd41
comparison
equal deleted inserted replaced
370:77cdfbdaca8c 371:fca370f847f8
8 #ifndef INC_MOTION_H_ 8 #ifndef INC_MOTION_H_
9 #define INC_MOTION_H_ 9 #define INC_MOTION_H_
10 10
11 11
12 /* exported data types */ 12 /* exported data types */
13 #define CUSTOMER_DEFINED_VIEWS (100u) /* value will cause the function to detect the numer of selected views */
13 14
14 typedef enum 15 typedef enum
15 { 16 {
16 MOTION_DETECT_OFF = 0, 17 MOTION_DETECT_OFF = 0,
17 MOTION_DETECT_SECTOR, 18 MOTION_DETECT_SECTOR,
37 float upperlimit; 38 float upperlimit;
38 float lowerlimit; 39 float lowerlimit;
39 } SSector; 40 } SSector;
40 41
41 void InitMotionDetection(void); 42 void InitMotionDetection(void);
42 void DefinePitchSectors(float centerAngle); 43 void DefinePitchSectors(float centerAngle, uint8_t numOfSectors);
43 detectionState_t detectPitch(float currentPitch); 44 detectionState_t detectPitch(float currentPitch);
44 detectionState_t detectSectorButtonEvent(float curPitch); 45 detectionState_t detectSectorButtonEvent(float curPitch);
45 46
46 #endif /* INC_MOTION_H_ */ 47 #endif /* INC_MOTION_H_ */