3import QGroundControl.Controls
6 property real pitchAngle: 0
7 property real rollAngle: 0
8 property real size: ScreenTools.isAndroid ? 300 : 100
9 property real _reticleHeight: 1
10 property real _reticleSpacing: size * 0.15
11 property real _reticleSlot: _reticleSpacing + _reticleHeight
12 property real _longDash: size * 0.35
13 property real _shortDash: size * 0.25
14 property real _fontSize: ScreenTools.defaultFontPointSize * 0.75
18 anchors.horizontalCenter: parent.horizontalCenter
19 anchors.verticalCenter: parent.verticalCenter
25 anchors.horizontalCenter: parent.horizontalCenter
26 anchors.verticalCenter: parent.verticalCenter
27 spacing: _reticleSpacing
31 property int _pitch: -(modelData * 5 - 90)
32 anchors.horizontalCenter: parent.horizontalCenter
33 width: (_pitch % 10) === 0 ? _longDash : _shortDash
34 height: _reticleHeight
39 anchors.horizontalCenter: parent.horizontalCenter
40 anchors.horizontalCenterOffset: -(_longDash)
41 anchors.verticalCenter: parent.verticalCenter
44 font.pointSize: _fontSize
47 visible: (_pitch != 0) && ((_pitch % 10) === 0)
50 anchors.horizontalCenter: parent.horizontalCenter
51 anchors.horizontalCenterOffset: (_longDash)
52 anchors.verticalCenter: parent.verticalCenter
55 font.pointSize: _fontSize
58 visible: (_pitch != 0) && ((_pitch % 10) === 0)
63 transform: [ Translate {
64 y: (pitchAngle * _reticleSlot / 5) - (_reticleSlot / 2)