diff --git a/src/FlightMap/Widgets/QGCArtificialHorizon.qml b/src/FlightMap/Widgets/QGCArtificialHorizon.qml index bc33f48003f6817a8bbe81ad66717f679b68526d..7171bed1036142e31fe0b685853e330d977d69e4 100644 --- a/src/FlightMap/Widgets/QGCArtificialHorizon.qml +++ b/src/FlightMap/Widgets/QGCArtificialHorizon.qml @@ -35,6 +35,9 @@ Item { property real pitchAngle: 0 clip: true anchors.fill: parent + + property real angularScale: pitchAngle * root.height / 45 + Item { id: artificialHorizon width: root.width * 4 @@ -67,7 +70,7 @@ Item { } transform: [ Translate { - y: pitchAngle * 4 + y: angularScale }, Rotation { origin.x: artificialHorizon.width / 2