0.2 version add desktop components multitouch, joystick, multicast
[mardrone] / mardrone / gauges / AttitudeGauge.qml
diff --git a/mardrone/gauges/AttitudeGauge.qml b/mardrone/gauges/AttitudeGauge.qml
new file mode 100644 (file)
index 0000000..a7a73b3
--- /dev/null
@@ -0,0 +1,59 @@
+import QtQuick 1.0
+
+
+Item {
+    id: root
+    property real roll : 0
+    property real pitch : 0
+
+//    width: 200; height: 200
+
+    Image {
+       id:rollItem
+       rotation: root.roll;
+       anchors.centerIn:   frame
+       transformOrigin: Item.Center
+       scale: frame.scale*0.4
+       source: "ati2.png"
+       Image {
+          anchors.centerIn:   rollItem
+         /*   transformOrigin: Item.Center
+        scale: frame.scale*0.4
+        rotation: root.roll;*/
+
+            source: "ati3.png"
+        }
+        Image {
+             anchors.centerIn: rollItem
+      //  scale: frame.scale*0.4
+      //  transformOrigin: Item.Center
+      //  rotation: root.roll;
+        transform:
+            Translate { y: root.pitch }
+
+
+            source: "ati4.png"
+        }
+        Image {
+             anchors.centerIn: frame
+      //  scale: frame.scale*0.4
+     //   transformOrigin: rollItem.Center
+      //  rotation: root.roll;
+
+            source: "ati2.png"
+        }
+
+    }
+    Image {
+        anchors.bottom:parent.bottom
+        anchors.horizontalCenter: parent.horizontalCenter
+        scale: frame.scale*0.22
+        source: "ati5.png"
+    }
+
+    Image {
+        id:frame
+        anchors.fill:parent
+        source: "ati1.png"
+    }
+}