This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
default_dashboard.qml
199 lines (196 loc) · 5.62 KB
/
default_dashboard.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
//import QtQuick
import QtQuick
//import QtQml.WorkerScript
import GaugeImage 0.1
//import "WarningLabel"
Rectangle {
x:0
y:0
width: 1280
height: 900
color: "black"
property string plugincompat: "FREEEMS"
GaugeImage {
x:0
y:0
width:300
height:300
minimum:0
maximum:6000
numLabels:3
startAngle:45
endAngle:315
text: "RPM"
property string propertyMapProperty: "RPM"
//Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["RPM_DURATION"] ? propertyMap["RPM_DURATION"] : 50) } }
m_value: (propertyMap["RPM"] ? propertyMap["RPM"] : 0)
}
GaugeImage {
x:300
y:0
width:300
height:300
minimum:0
maximum:40
numLabels:3
startAngle:45
endAngle:315
text: "Ign Timing"
property string propertyMapProperty:"timing"
//Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["Advance_DURATION"] ? propertyMap["Advance_DURATION"] : 50) } }
m_value: (propertyMap["timing"] ? propertyMap["timing"] : 0)
}
GaugeImage {
x:0
y:300
width:300
height:300
minimum:0
maximum:25
numLabels:5
startAngle:45
endAngle:315
text: "AFR"
property string propertyMapProperty:"Air/Fuel Ratio"
//Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["EffectivePW_DURATION"] ? propertyMap["EffectivePW_DURATION"] : 50) } }
m_value: (propertyMap["Air/Fuel Ratio"] ? propertyMap["Air/Fuel Ratio"] : 0)
}
GaugeImage {
x:300
y:300
width:300
height:300
minimum:-20
maximum:120
numLabels:7
startAngle:45
endAngle:315
text: "Coolant"
property string propertyMapProperty:"CLT"
//Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["CHT_DURATION"] ? propertyMap["CHT_DURATION"] : 50) } }
m_value: (propertyMap["CLT"] ? propertyMap["CLT"] : 0)
}
GaugeImage {
x:600
y:0
width:300
height:300
minimum:0
maximum:100
numLabels:2
startAngle:45
endAngle:315
text: "TPS"
property string propertyMapProperty:"TPS"
//Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["EGO_DURATION"] ? propertyMap["EGO_DURATION"] : 50) } }
m_value: (propertyMap["TPS"] ? propertyMap["TPS"] : 0)
}
GaugeImage {
x:600
y:300
width:300
height:300
minimum:0
maximum:250
numLabels:5
startAngle:45
endAngle:315
text: "MAP"
property string propertyMapProperty:"MAP"
//Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["MAP_DURATION"] ? propertyMap["MAP_DURATION"] : 50) } }
m_value: (propertyMap["MAP"] ? propertyMap["MAP"] : 0)
}
Rectangle {
x:900
y:0
width:120
height:60
color:"grey"
property string propertyMapProperty:"IAT"
Rectangle {
x:5
y:5
width:110
height:50
color:"black"
Text {
x:0
y:35
font.pixelSize:13
color:"white"
text: "Intake Air Temp (C)"
}
Text {
x:10
y:3
font.pixelSize:30
color:"white"
text: Math.round(((propertyMap["IAT"] ? propertyMap["IAT"] : "0.0")*100))/100;
}
}
}
Rectangle {
x:0
y:600
width:300
height:60
color:"grey"
property string propertyMapProperty:"IAT"
Rectangle {
x:1
y:1
width:parent.width-2
height:parent.height-2
color:"black"
Text {
x:10
y:0
font.pixelSize:30
color:"white"
text: Math.round(((propertyMap["IAT"] ? propertyMap["IAT"] : "0.0")*100))/100;
}
Text {
x:0
y:35
font.pixelSize:13
color:"white"
text: "Intake Air Temp (C)"
}
Rectangle {
x:125
y:(parent.height/2)-10
width:parent.width-125
height:20
color:"grey"
Rectangle {
x:1
y:1
width:parent.width-2
height:18
color:"black"
}
Rectangle {
x:1
y:1
width:(parent.width-125 * (propertyMap["IAT"] / 655.35))
height:18
color:(propertyMap["IAT"] < 370 ? "green" : propertyMap["IAT"] < 390 ? "yellow" : propertyMap["IAT"] < 410 ? "orange" : "red")
}
}
}
}
// Component.onCompleted: {
// }
// WarningLabel {
// id: warning;
// x: (parent.width / 2.0) - 200
// width:200
// y: (parent.height / 2.0) - 100
// height:100
// propertyMapProperty: "CHT";
// conditiontype: "over";
// conditionval: 215;
// conditionvalue: propertyMap["CHT"];
// message: "Warning!\nEngine is overheating!!!!!";
// }
}