From 9acb3d6595ce5e53140f330ef5951a78acb29a1b Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Fri, 15 Jan 2016 08:51:32 +0100 Subject: [PATCH] LP-29 fix PFD pitch alignement on behalf of Laurent introduce a scale factor so pitch aligns on dash and not on text --- ground/gcs/src/share/qml/pfd/PfdWorldView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ground/gcs/src/share/qml/pfd/PfdWorldView.qml b/ground/gcs/src/share/qml/pfd/PfdWorldView.qml index 73b9811b9..3c0842c58 100644 --- a/ground/gcs/src/share/qml/pfd/PfdWorldView.qml +++ b/ground/gcs/src/share/qml/pfd/PfdWorldView.qml @@ -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