Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditCustom.c Wed Nov 25 20:16:20 2020 +0100 +++ b/Discovery/Src/tMenuEditCustom.c Wed Nov 25 20:18:22 2020 +0100 @@ -228,6 +228,11 @@ { distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading); + if(pSettings->showDebugInfo) + { + snprintf(text,32,"\001%03.3f",distance); + write_label_var( 30, 700, ME_Y_LINE2, &FontT48, text); + } if(distance < 0.5) { set_Backlight_Boost(settingsGetPointer()->viewPortMode & 0x03);