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:
parent
30fb84c9b4
commit
9acb3d6595
@ -16,8 +16,8 @@ Item {
|
|||||||
width: Math.round(sceneItem.width*scaledBounds.width/2)*2
|
width: Math.round(sceneItem.width*scaledBounds.width/2)*2
|
||||||
height: Math.round(sceneItem.height*scaledBounds.height/2)*3
|
height: Math.round(sceneItem.height*scaledBounds.height/2)*3
|
||||||
|
|
||||||
property double pitch1DegScaledHeight: (svgRenderer.scaledElementBounds("pfd/pfd.svg", "pitch-90").y -
|
property double pitch1DegScaledHeight: ((svgRenderer.scaledElementBounds("pfd.svg", "pitch-90").y -
|
||||||
svgRenderer.scaledElementBounds("pfd/pfd.svg", "pitch90").y)/180.0
|
svgRenderer.scaledElementBounds("pfd.svg", "pitch90").y)*1.03)/180.0
|
||||||
|
|
||||||
property double pitch1DegHeight: sceneItem.height*pitch1DegScaledHeight
|
property double pitch1DegHeight: sceneItem.height*pitch1DegScaledHeight
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user