Mercurial > public > ostc4
comparison Discovery/Src/motion.c @ 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 | beb4d47542f1 |
children | f52bc70e380f |
comparison
equal
deleted
inserted
replaced
584:830de438e0b0 | 585:4dfdf230d8ba |
---|---|
16 #include "settings.h" | 16 #include "settings.h" |
17 | 17 |
18 #define STABLE_STATE_COUNT 2 /* number of count to declare a state as stable (at the moment based on 100ms) */ | 18 #define STABLE_STATE_COUNT 2 /* number of count to declare a state as stable (at the moment based on 100ms) */ |
19 #define STABLE_STATE_TIMEOUT 5 /* Detection shall be aborted if a movement state is stable for more than 500ms */ | 19 #define STABLE_STATE_TIMEOUT 5 /* Detection shall be aborted if a movement state is stable for more than 500ms */ |
20 | 20 |
21 #define SECTOR_WINDOW 40.0 /* Pitch window which is used for custom view projection */ | 21 #define SECTOR_WINDOW 30.0 /* Pitch window which is used for custom view projection */ |
22 #define SECTOR_WINDOW_MAX 120.0 /* Pitch window which will be greater than the divers field of view */ | 22 #define SECTOR_WINDOW_MAX 120.0 /* Pitch window which will be greater than the divers field of view */ |
23 #define SECTOR_HYSTERY 2 /* Additional offset to avoid fast changing displays */ | 23 #define SECTOR_HYSTERY 2 /* Additional offset to avoid fast changing displays */ |
24 #define SECTOR_BORDER 400.0 /* Define a value which is out of limit to avoid not wanted key events */ | 24 #define SECTOR_BORDER 400.0 /* Define a value which is out of limit to avoid not wanted key events */ |
25 #define SECTOR_FILTER 10 /* Define speed for calculated angle to follow real value */ | 25 #define SECTOR_FILTER 10 /* Define speed for calculated angle to follow real value */ |
26 | 26 |
170 } | 170 } |
171 else | 171 else |
172 { | 172 { |
173 sectorDetection.count = t7_GetEnabled_customviews(); | 173 sectorDetection.count = t7_GetEnabled_customviews(); |
174 } | 174 } |
175 if(sectorDetection.count > 7) | 175 if(sectorDetection.count > 5) |
176 { | 176 { |
177 sectorDetection.count = 7; /* more views are hard to manually control */ | 177 sectorDetection.count = 5; /* more views are hard to manually control */ |
178 } | 178 } |
179 } | 179 } |
180 else | 180 else |
181 if(numOfSectors != CUSTOMER_KEEP_LAST_SECTORS) | 181 if(numOfSectors != CUSTOMER_KEEP_LAST_SECTORS) |
182 { | 182 { |