Mercurial > public > ostc4
changeset 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 | 91a8f9893e68 |
children | f9c6ef098275 |
files | Discovery/Src/tMenuEditCustom.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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);