diff Discovery/Src/base.c @ 625:028d8f3a9410

Switch Sector / Scroll detection to vector implementation: The vector implementation is mor robust against influences of roll and yaw to the pitch angle. To improve the performance the old sector based implementation has been replaced. In addition after entering focus state the roll angle is ignored. To improve readability and due to removal of some no longer needed function codes, function names have been updated
author Ideenmodellierer
date Mon, 08 Feb 2021 21:35:46 +0100
parents ba83a8ef9bad
children c737cf5d9067
line wrap: on
line diff
--- a/Discovery/Src/base.c	Sun Feb 07 22:05:32 2021 +0100
+++ b/Discovery/Src/base.c	Mon Feb 08 21:35:46 2021 +0100
@@ -757,7 +757,7 @@
 							pSettings->design = 7;
 							if(pSettings->MotionDetection == MOTION_DETECT_SECTOR)
 							{
-								DefinePitchSectors((float)(pSettings->viewPitch - 180.0),CUSTOMER_DEFINED_VIEWS);
+								DefineSectorCount(CUSTOMER_DEFINED_VIEWS);
 								MapCVToSector();
 							}
 						}
@@ -773,7 +773,7 @@
 						pSettings->design = 3;
 						if(pSettings->MotionDetection == MOTION_DETECT_SECTOR)
 						{
-							DefinePitchSectors((float)(pSettings->viewPitch - 180.0),CUSTOMER_DEFINED_VIEWS);
+							DefineSectorCount(CUSTOMER_DEFINED_VIEWS);
 							MapCVToSector();
 						}
 					}