QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VerticalCompassAttitude.qml
Go to the documentation of this file.
1import QtQuick
2
3import QGroundControl
4import QGroundControl.Controls
5import QGroundControl.FlightMap
6
7Rectangle {
8 width: ScreenTools.defaultFontPixelHeight * 10
9 height: _outerRadius * 4
10 radius: _outerRadius
11 color: QGroundControl.globalPalette.window
12
13 property real extraInset: 0
14 property real extraValuesWidth: _outerRadius
15
16 property real _outerMargin: (width * 0.05) / 2
17 property real _outerRadius: width / 2
18 property real _innerRadius: _outerRadius - _outerMargin
19
20 // Prevent all clicks from going through to lower layers
21 DeadMouseArea {
22 anchors.fill: parent
23 }
24
25 QGCAttitudeWidget {
26 id: attitude
27 anchors.horizontalCenter: parent.horizontalCenter
28 anchors.topMargin: _outerMargin
29 anchors.top: parent.top
30 size: _innerRadius * 2
31 vehicle: globals.activeVehicle
32 }
33
34 QGCCompassWidget {
35 id: compass
36 anchors.horizontalCenter: parent.horizontalCenter
37 anchors.topMargin: _outerMargin * 2
38 anchors.top: attitude.bottom
39 size: _innerRadius * 2
40 vehicle: globals.activeVehicle
41 }
42}