comparison 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
comparison
equal deleted inserted replaced
624:930f1bbe0ac2 625:028d8f3a9410
755 else /* return to t7 view */ 755 else /* return to t7 view */
756 { 756 {
757 pSettings->design = 7; 757 pSettings->design = 7;
758 if(pSettings->MotionDetection == MOTION_DETECT_SECTOR) 758 if(pSettings->MotionDetection == MOTION_DETECT_SECTOR)
759 { 759 {
760 DefinePitchSectors((float)(pSettings->viewPitch - 180.0),CUSTOMER_DEFINED_VIEWS); 760 DefineSectorCount(CUSTOMER_DEFINED_VIEWS);
761 MapCVToSector(); 761 MapCVToSector();
762 } 762 }
763 } 763 }
764 } 764 }
765 else 765 else
771 if (pSettings->extraDisplay == EXTRADISPLAY_BIGFONT) 771 if (pSettings->extraDisplay == EXTRADISPLAY_BIGFONT)
772 { 772 {
773 pSettings->design = 3; 773 pSettings->design = 3;
774 if(pSettings->MotionDetection == MOTION_DETECT_SECTOR) 774 if(pSettings->MotionDetection == MOTION_DETECT_SECTOR)
775 { 775 {
776 DefinePitchSectors((float)(pSettings->viewPitch - 180.0),CUSTOMER_DEFINED_VIEWS); 776 DefineSectorCount(CUSTOMER_DEFINED_VIEWS);
777 MapCVToSector(); 777 MapCVToSector();
778 } 778 }
779 } 779 }
780 else if (pSettings->extraDisplay == EXTRADISPLAY_DECOGAME) 780 else if (pSettings->extraDisplay == EXTRADISPLAY_DECOGAME)
781 pSettings->design = 4; 781 pSettings->design = 4;