1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-29 fix PFD pitch alignement on behalf of Laurent

introduce a scale factor so pitch aligns on dash and not on text
This commit is contained in:
Philippe Renon 2016-01-15 08:51:32 +01:00
parent 30fb84c9b4
commit 9acb3d6595

View File

@ -16,8 +16,8 @@ Item {
width: Math.round(sceneItem.width*scaledBounds.width/2)*2
height: Math.round(sceneItem.height*scaledBounds.height/2)*3
property double pitch1DegScaledHeight: (svgRenderer.scaledElementBounds("pfd/pfd.svg", "pitch-90").y -
svgRenderer.scaledElementBounds("pfd/pfd.svg", "pitch90").y)/180.0
property double pitch1DegScaledHeight: ((svgRenderer.scaledElementBounds("pfd.svg", "pitch-90").y -
svgRenderer.scaledElementBounds("pfd.svg", "pitch90").y)*1.03)/180.0
property double pitch1DegHeight: sceneItem.height*pitch1DegScaledHeight