Mercurial > public > ostc4
comparison Discovery/Inc/motion.h @ 611:916998f90e39
Suspend MotionDetection events while diver is operationg the OSTC:
In the previous version in some situations the customer selection of the diver was immediatly overwritten by the detection function value (e.g. in sector mode). To prevent this behaviour a timeout for the detection has been added. Also in case the diver is operating a sub menu the handling of motion detection events will now be blocked.
author | Ideenmodellierer |
---|---|
date | Thu, 14 Jan 2021 21:25:15 +0100 |
parents | 132e7e3d13a7 |
children | 028d8f3a9410 |
comparison
equal
deleted
inserted
replaced
610:ae7f8333c900 | 611:916998f90e39 |
---|---|
71 uint8_t pitch; | 71 uint8_t pitch; |
72 uint8_t yaw; | 72 uint8_t yaw; |
73 } SDeltaHistory; | 73 } SDeltaHistory; |
74 | 74 |
75 void InitMotionDetection(void); | 75 void InitMotionDetection(void); |
76 void suspendMotionDetection(uint8_t seconds); | |
77 void HandleMotionDetection(void); | |
76 void resetMotionDeltaHistory(); | 78 void resetMotionDeltaHistory(); |
77 void evaluateMotionDelta(float roll, float pitch, float yaw); | 79 void evaluateMotionDelta(float roll, float pitch, float yaw); |
78 void DefinePitchSectors(float centerAngle, uint8_t numOfSectors); | 80 void DefinePitchSectors(float centerAngle, uint8_t numOfSectors); |
79 void MapCVToSector(void); | 81 void MapCVToSector(void); |
80 detectionState_t detectPitch(float currentPitch); | 82 detectionState_t detectPitch(float currentPitch); |