Sync refactoring for multiple platforms
[mardrone] / mardrone / gauges / AttitudeGauge.qml
index a7a73b3..15e0bca 100644 (file)
@@ -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
+    }
 }