Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
624:930f1bbe0ac2 | 625:028d8f3a9410 |
---|---|
215 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); | 215 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); |
216 | 216 |
217 /* test if we are in focus */ | 217 /* test if we are in focus */ |
218 if((pSettings->viewPitch != 0.0) || (pSettings->viewRoll != 0.0) || (pSettings->viewYaw != 0.0)) | 218 if((pSettings->viewPitch != 0.0) || (pSettings->viewRoll != 0.0) || (pSettings->viewYaw != 0.0)) |
219 { | 219 { |
220 distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading); | 220 distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading, MOTION_ENABLE_ALL); |
221 | 221 |
222 /* show "bar graph" indicating the distance to the center point */ | 222 /* show "bar graph" indicating the distance to the center point */ |
223 textIndex = 0; | 223 textIndex = 0; |
224 text[textIndex++] = '\001'; | 224 text[textIndex++] = '\001'; |
225 | 225 |