diff Discovery/Src/tMenuEditCustom.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 fb5bb04ad914
children 3e1a0e267f38
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditCustom.c	Sun Feb 07 22:05:32 2021 +0100
+++ b/Discovery/Src/tMenuEditCustom.c	Mon Feb 08 21:35:46 2021 +0100
@@ -217,7 +217,7 @@
     /* test if we are in focus */
     if((pSettings->viewPitch != 0.0) || (pSettings->viewRoll != 0.0) || (pSettings->viewYaw != 0.0))
     {
-    	distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading);
+    	distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading, MOTION_ENABLE_ALL);
 
     	/* show "bar graph" indicating the distance to the center point */
         textIndex = 0;