0.2 version add desktop components multitouch, joystick, multicast
[mardrone] / mardrone / gauges / AttitudeGauge.qml
1 import QtQuick 1.0
2
3
4 Item {
5     id: root
6     property real roll : 0
7     property real pitch : 0
8
9 //    width: 200; height: 200
10
11     Image {
12        id:rollItem
13        rotation: root.roll;
14        anchors.centerIn:   frame
15        transformOrigin: Item.Center
16        scale: frame.scale*0.4
17        source: "ati2.png"
18        Image {
19           anchors.centerIn:   rollItem
20          /*   transformOrigin: Item.Center
21         scale: frame.scale*0.4
22         rotation: root.roll;*/
23
24             source: "ati3.png"
25         }
26         Image {
27              anchors.centerIn: rollItem
28       //  scale: frame.scale*0.4
29       //  transformOrigin: Item.Center
30       //  rotation: root.roll;
31         transform:
32             Translate { y: root.pitch }
33
34
35             source: "ati4.png"
36         }
37         Image {
38              anchors.centerIn: frame
39       //  scale: frame.scale*0.4
40      //   transformOrigin: rollItem.Center
41       //  rotation: root.roll;
42
43             source: "ati2.png"
44         }
45
46     }
47     Image {
48         anchors.bottom:parent.bottom
49         anchors.horizontalCenter: parent.horizontalCenter
50         scale: frame.scale*0.22
51         source: "ati5.png"
52     }
53
54     Image {
55         id:frame
56         anchors.fill:parent
57         source: "ati1.png"
58     }
59 }