forked from berkbavas/QmlFlightInstruments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExampleEFIS.qml
100 lines (84 loc) · 3 KB
/
ExampleEFIS.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import "EFIS/EADI"
import "EFIS/EHSI"
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
Window {
id: window
visible: true
minimumWidth: 800
minimumHeight: 600
visibility: Window.Maximized
title: "EFIS Example"
color: "#000000"
Item {
id: container
property double scaleRatio: 3.05 * Math.min(height / 1080, width / 1920)
anchors {
fill: parent
margins: 16
}
Row {
anchors.centerIn: parent
spacing: 8
scale: container.scaleRatio
Rectangle {
width: 310
height: 310
radius: 6
color: "#000000"
ElectronicAttitudeDirectionIndicator {
anchors.centerIn: parent
scaleRatio: container.scaleRatio
adi.angleOfAttack: pfd.angleOfAttack
adi.sideSlipAngle: pfd.angleOfSideSlip
adi.roll: pfd.roll
adi.pitch: pfd.pitch
adi.slipSkid: pfd.slipSkid
adi.turnRate: pfd.turnRate
adi.dotH: pfd.ilsLOC
adi.dotV: pfd.ilsGS
adi.fdPitch: pfd.fdPitch
adi.fdRoll: pfd.fdRoll
adi.dotHVisible: pfd.ilsLOCVisible
adi.dotVVisible: pfd.ilsGSVisible
adi.fdVisible: pfd.fdVisible
adi.stallVisible: pfd.stall
asi.airspeed: pfd.airspeed
asi.bugValue: pfd.airspeedBug
alt.altitude: pfd.altitude
alt.bugValue: pfd.altitudeBug
hsi.heading: pfd.heading
hsi.bugValue: pfd.headingBug
vsi.climbRate: pfd.climbRate
labels.airspeedBug: pfd.airspeedBug
labels.machNumber: pfd.machNumber
labels.altitudeBug: pfd.altitudeBug
labels.pressure: pfd.pressure
labels.pressureMode: pfd.pressureMode
labels.flightMode: pfd.flightMode
labels.speedMode: pfd.speedMode
labels.lnav: pfd.lateralNavigationMode
labels.vnav: pfd.verticalNavigationMode
}
}
Rectangle {
width: 310
height: 310
radius: 6
color: "#000000"
ElectronicHorizontalSituationIndicator {
anchors.centerIn: parent
heading: pfd.heading
course: pfd.course
bearing: pfd.bearing
deviation: pfd.vorDeviation
headingBug: pfd.headingBug
distance: pfd.dmeDistance
cdiMode: pfd.courseDeviationIndicatorMode
}
}
}
}
}