0.2 version add desktop components multitouch, joystick, multicast
[mardrone] / mardrone / gauges / AltGauge.qml
diff --git a/mardrone/gauges/AltGauge.qml b/mardrone/gauges/AltGauge.qml
new file mode 100644 (file)
index 0000000..1fb08f6
--- /dev/null
@@ -0,0 +1,44 @@
+
+import QtQuick 1.0
+
+Item {
+    id: root
+    property real value : 0
+
+//    width: 200; height: 200
+
+    Image {
+        anchors.fill:parent
+        source: "alt2.png"
+    }
+
+
+
+    Image {
+        id: needle10
+        x: (root.width/2)-(width/2); y:(root.width/2)
+        transformOrigin: Item.Top
+        scale: root.width / 300
+        rotation: 180+root.value*0.36
+        smooth: true
+        source: "needle1.png"
+
+    }
+    Rectangle {
+        color: "blue"
+        x:0;y:0; width:10;height:10
+    }
+
+    Image {
+        id: needle1
+        x: (root.width/2)-(width/2); y:(root.width/2)
+        transformOrigin: Item.Top
+        scale: root.width / 300
+        rotation: 180+root.value*3.6
+
+        smooth: true
+        source: "needle2.png"
+
+    }
+  //  Image { x: 21; y: 18; source: "overlay.png" }
+}