# HG changeset patch # User Ideenmodellierer # Date 1607880552 -3600 # Node ID 4dfdf230d8ba53913cc1fd0a7a459c72da745c2b # Parent 830de438e0b0ea7fd6c6fcec68a3cd178c065c37 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 diff -r 830de438e0b0 -r 4dfdf230d8ba Discovery/Src/motion.c --- 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