diff 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
line wrap: on
line diff
--- a/Discovery/Inc/motion.h	Thu Jan 14 20:38:28 2021 +0100
+++ b/Discovery/Inc/motion.h	Thu Jan 14 21:25:15 2021 +0100
@@ -73,6 +73,8 @@
 } SDeltaHistory;
 
 void InitMotionDetection(void);
+void suspendMotionDetection(uint8_t seconds);
+void HandleMotionDetection(void);
 void resetMotionDeltaHistory();
 void evaluateMotionDelta(float roll, float pitch, float yaw);
 void DefinePitchSectors(float centerAngle, uint8_t numOfSectors);