X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=mardrone%2Fgauges%2FAttitudeGauge.qml;h=15e0bca686808a2b3a6c09a5533bffa63d4e0efa;hb=f19da612ad0dd01a6f6339386625ce2bdc259220;hp=a7a73b336ecd6eed44a391d2fbaa475ed349e63d;hpb=196f6d56fb98af5849cc98d389de421822d3d5e0;p=mardrone diff --git a/mardrone/gauges/AttitudeGauge.qml b/mardrone/gauges/AttitudeGauge.qml index a7a73b3..15e0bca 100644 --- a/mardrone/gauges/AttitudeGauge.qml +++ b/mardrone/gauges/AttitudeGauge.qml @@ -5,6 +5,7 @@ Item { id: root property real roll : 0 property real pitch : 0 + property url bezel:"" // width: 200; height: 200 @@ -13,7 +14,7 @@ Item { rotation: root.roll; anchors.centerIn: frame transformOrigin: Item.Center - scale: frame.scale*0.4 + scale: frame.scale*0.3 source: "ati2.png" Image { anchors.centerIn: rollItem @@ -29,25 +30,23 @@ Item { // transformOrigin: Item.Center // rotation: root.roll; transform: - Translate { y: root.pitch } - - + Translate { y: root.pitch*2 } source: "ati4.png" } Image { - anchors.centerIn: frame - // scale: frame.scale*0.4 - // transformOrigin: rollItem.Center - // rotation: root.roll; + anchors.centerIn: rollItem + transformOrigin: rollItem.Center + //rotation: root.roll; source: "ati2.png" } } Image { - anchors.bottom:parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - scale: frame.scale*0.22 + // Static center plane + anchors.horizontalCenter: frame.horizontalCenter + y:15 + scale: frame.scale*0.3 source: "ati5.png" } @@ -56,4 +55,9 @@ Item { anchors.fill:parent source: "ati1.png" } + Image { + id:bezelImg + anchors.fill:parent + source: bezel + } }