changeset 585:4dfdf230d8ba

Reduced view angle and number of vusiualized custom views in setor mode: With the previous angle of 40 it was hard to read the top as well as the bottom view. Also the amount of views was to much => reduced angle and number of max used custom views
author Ideenmodellierer
date Sun, 13 Dec 2020 18:29:12 +0100
parents 830de438e0b0
children bb5ce239741f
files Discovery/Src/motion.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/motion.c	Sat Dec 12 21:05:11 2020 +0100
+++ b/Discovery/Src/motion.c	Sun Dec 13 18:29:12 2020 +0100
@@ -18,7 +18,7 @@
 #define	STABLE_STATE_COUNT			2	/* number of count to declare a state as stable (at the moment based on 100ms) */
 #define STABLE_STATE_TIMEOUT		5	/* Detection shall be aborted if a movement state is stable for more than 500ms */
 
-#define SECTOR_WINDOW				40.0  	/* Pitch window which is used for custom view projection */
+#define SECTOR_WINDOW				30.0  	/* Pitch window which is used for custom view projection */
 #define SECTOR_WINDOW_MAX			120.0  	/* Pitch window which will be greater than the divers field of view */
 #define SECTOR_HYSTERY				2		/* Additional offset to avoid fast changing displays */
 #define SECTOR_BORDER				400.0	/* Define a value which is out of limit to avoid not wanted key events */
@@ -172,9 +172,9 @@
 		{
 			sectorDetection.count =  t7_GetEnabled_customviews();
 		}
-		if(sectorDetection.count > 7)
+		if(sectorDetection.count > 5)
 		{
-			sectorDetection.count = 7;	/* more views are hard to manually control */
+			sectorDetection.count = 5;	/* more views are hard to manually control */
 		}
 	}
 	else