comparison Discovery/Src/tMenuEditCustom.c @ 572:f3463c06b2d3

Added debug view to viewport calibration: By enabling the debuginfo switch the calibration menu now displays a numeric value showing the deviation between current and calibrated view port.
author Ideenmodellierer
date Wed, 25 Nov 2020 20:18:22 +0100
parents e581425c7e3e
children 86c4baa6ba29
comparison
equal deleted inserted replaced
571:91a8f9893e68 572:f3463c06b2d3
226 /* test if we are in focus */ 226 /* test if we are in focus */
227 if((pSettings->viewPitch != 0.0) || (pSettings->viewRoll != 0.0) || (pSettings->viewYaw != 0.0)) 227 if((pSettings->viewPitch != 0.0) || (pSettings->viewRoll != 0.0) || (pSettings->viewYaw != 0.0))
228 { 228 {
229 distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading); 229 distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading);
230 230
231 if(pSettings->showDebugInfo)
232 {
233 snprintf(text,32,"\001%03.3f",distance);
234 write_label_var( 30, 700, ME_Y_LINE2, &FontT48, text);
235 }
231 if(distance < 0.5) 236 if(distance < 0.5)
232 { 237 {
233 set_Backlight_Boost(settingsGetPointer()->viewPortMode & 0x03); 238 set_Backlight_Boost(settingsGetPointer()->viewPortMode & 0x03);
234 if(pSettings->viewPortMode >> 4) 239 if(pSettings->viewPortMode >> 4)
235 { 240 {