comment on the folds
|
1 |
# vim: set foldmethod=marker foldmarker={{{,}}} : |
commit initial
|
2 |
var displayClass = { |
pass device pointer to displ...
|
3 |
new: func(device, role) { |
add new vim folds
|
4 |
# the contructor {{{ |
commit initial
|
5 |
var m = { parents: [ displayClass ] }; |
cosmétique: folding pour les...
|
6 | |
commit initial
|
7 |
m.display = canvas.new({ |
8 |
"name" : role, |
|
9 |
"size" : [1024, 768], |
|
10 |
"view" : [1024, 768], |
|
11 |
"mipmapping": 1 |
|
12 |
}); |
|
13 |
m.display.addPlacement({ |
|
14 |
"node": "Screen", |
|
15 |
"parent": role |
|
16 |
}); |
|
17 |
m.display.setColorBackground(0,0,0); |
|
18 |
m.role = role; |
|
pass device pointer to displ...
|
19 |
m.device = device; |
écriture du wrapper pour le ...
|
20 |
m.screenElements = {}; |
commit initial
|
21 | |
22 |
return m; |
|
23 |
}, |
|
add new vim folds
|
24 |
#}}} |
commit initial
|
25 | |
add new vim folds
|
26 |
# timers stuff {{{ |
ajoute un timer pour cacher ...
|
27 |
timers : {}, |
28 | ||
29 |
timerTrigger : func { |
|
30 |
var now = systime(); |
|
31 |
foreach (var id; keys(me.timers)) { |
|
32 |
if (me.timers[id] < now) { |
|
33 |
me.screenElements[id].hide(); |
|
34 |
delete(me.timers, id); |
|
35 |
} |
|
36 |
} |
|
37 |
settimer(func me.timerTrigger(), 1); |
|
38 |
}, |
|
39 | ||
40 |
addTimer : func (duration, element) { |
|
41 |
if (typeof(element) == 'scalar') |
|
42 |
element = [ element ]; |
|
43 |
var end = systime() + duration; |
|
44 |
foreach (var e; element) |
|
45 |
me.timers[e] = end; |
|
46 |
}, |
|
add new vim folds
|
47 |
#}}} |
ajoute un timer pour cacher ...
|
48 | |
commit initial
|
49 |
loadsvg : func () { |
50 |
me.screen = me.display.createGroup(); |
|
51 |
me.screen.hide(); |
|
52 |
canvas.parsesvg(me.screen, "Aircraft/Instruments-3d/zkv1000/Systems/screen.svg"); |
|
53 |
}, |
|
54 | ||
55 |
_showInitProgress : func (p,t) { |
|
cosmétique: folding pour les...
|
56 |
#{{{ |
commit initial
|
57 |
p.setText(t); |
58 |
if (zkv.getNode(me.role ~ 'init').getValue() != 0) { |
|
59 |
if (size(t) >= 10) t = ''; |
|
60 |
settimer(func { me._showInitProgress(p, t ~ '.'); }, 0.1); |
|
61 |
} |
|
62 |
else { |
|
63 |
me.progress.hide(); |
|
64 |
me.screen.show(); |
|
séparation configuration PFD...
|
65 |
var groups = { |
animation VSI
|
66 |
show : [ |
commit initial
|
67 |
'SoftKeysTexts', |
68 |
'COMM', |
|
69 |
'NAV', |
|
ajout COMM, et factorisation...
|
70 |
'nav-freq-switch', |
71 |
'comm-freq-switch', |
|
séparation configuration PFD...
|
72 |
], |
73 |
text: [ |
|
74 |
'nav1-standby-freq', 'nav1-selected-freq', 'nav1-id', |
|
75 |
'nav2-standby-freq', 'nav2-selected-freq', 'nav2-id', |
|
ajout COMM, et factorisation...
|
76 |
'comm1-standby-freq', 'comm1-selected-freq', |
77 |
'comm2-standby-freq', 'comm2-selected-freq', |
|
séparation configuration PFD...
|
78 |
], |
ajout COMM, et factorisation...
|
79 |
hide : [ ], |
séparation configuration PFD...
|
80 |
clip: [ ], |
81 |
}; |
|
softkeys are available now
|
82 | |
83 |
for (var k = 0; k < 12; k += 1) |
|
84 |
append(groups.text, sprintf("SoftKey%02i-text", k)); |
|
85 | ||
séparation configuration PFD...
|
86 |
if (me.role == 'PFD') { |
87 |
append(groups.show, |
|
commit initial
|
88 |
'XPDR-TIME', |
AI disponible
|
89 |
'FlightInstruments', |
90 |
'Horizon', |
|
AI disponible, avec bankPoin...
|
91 |
'bankPointer', |
animation VSI
|
92 |
'VSI', |
animation HSI
|
93 |
'Rose', |
animation HDG bug
|
94 |
'Heading-bug', |
95 |
'PFD-Widgets', |
|
trends animation
|
96 |
'Trends', |
97 |
'Airspeed-Trend-Indicator', |
|
98 |
'Altitude-Trend-Indicator', |
|
adds OAT, TAS, GSPD, WindDat...
|
99 |
'OAT', |
100 |
'IAS-bg', |
|
101 |
'TAS', |
|
102 |
'GSPD', |
|
séparation configuration PFD...
|
103 |
); |
104 |
append(groups.hide, |
|
NAV disponible (hors CDI)
|
105 |
'CDI', |
animation HSI
|
106 |
'NAV1-pointer', |
107 |
'NAV2-pointer', |
|
108 |
'GPS-pointer', |
|
109 |
'Bearing1', |
|
110 |
'Bearing2', |
|
animation HDG bug
|
111 |
'SelectedHDG-bg', |
112 |
'SelectedHDG-bgtext', |
|
113 |
'SelectedHDG-text', |
|
114 |
'SelectedCRS-bg', |
|
115 |
'SelectedCRS-bgtext', |
|
116 |
'SelectedCRS-text', |
|
adds OAT, TAS, GSPD, WindDat...
|
117 |
'SelectedAlt-bug', |
118 |
'SelectedAlt-top', |
|
animation HDG bug
|
119 |
'TAS', |
120 |
'GSPD', |
|
121 |
'BARO', |
|
122 |
'WindData', |
|
123 |
'Reversionnary', |
|
124 |
'Annunciation', |
|
125 |
'Comparator', |
|
126 |
'BRG1', |
|
127 |
'BRG2', |
|
128 |
'DME1', |
|
129 |
'PFD-Map', |
|
adds OAT, TAS, GSPD, WindDat...
|
130 |
'PFD-Multilines', |
131 |
'WindData', 'WindData-OPTN1', 'WindData-OPTN2', 'WindData-OPTN1-HDG', 'WindData-OPTN2-symbol', 'WindData-OPTN2-headwind', 'WindData-OPTN2-crosswind' |
|
séparation configuration PFD...
|
132 |
); |
133 |
append(groups.clip, |
|
animation IAS
|
134 |
'SpeedLint1', |
animation ALT
|
135 |
'SpeedTape', |
136 |
'LintAlt', |
|
137 |
'AltLint00011' |
|
138 |
); |
|
séparation configuration PFD...
|
139 |
append(groups.text, |
adds OAT, TAS, GSPD, WindDat...
|
140 |
'SelectedAlt-text', |
141 |
'TAS-text', |
|
142 |
'GSPD-text', |
|
anime time display
|
143 |
'TIME-text', |
adds OAT, TAS, GSPD, WindDat...
|
144 |
'OAT-text', |
séparation configuration PFD...
|
145 |
'VSIText', |
146 |
'Speed110', |
|
147 |
'Alt11100', |
|
148 |
'HDG-text', |
|
adds OAT, TAS, GSPD, WindDat...
|
149 |
'WindData-OPTN1-HDG-text', 'WindData-OPTN1-SPD-text', |
150 |
'WindData-OPTN2-crosswind-text', 'WindData-OPTN2-headwind-text', |
|
séparation configuration PFD...
|
151 |
'AltBigC', 'AltSmallC' |
152 |
); |
|
153 |
for (var place = 1; place <= 6; place +=1) { |
|
154 |
append(groups.text, |
|
155 |
'AltBigU' ~ place, |
|
156 |
'AltSmallU' ~ place, |
|
157 |
'AltBigD' ~ place, |
|
158 |
'AltSmallD' ~ place |
|
159 |
); |
|
160 |
} |
|
animation ALT
|
161 |
} |
séparation configuration PFD...
|
162 |
else |
163 |
append(groups.show, 'Header'); |
|
164 | ||
165 |
me.loadGroup(groups); |
|
animation ALT
|
166 | |
séparation configuration PFD...
|
167 |
if (me.role == 'PFD') { |
adds OAT, TAS, GSPD, WindDat...
|
168 |
me.update(); |
169 |
me.updateAI(); |
|
170 |
me.updateVSI(); |
|
171 |
me.updateIAS(); |
|
172 |
me.updateALT(); |
|
173 |
me.updateHSI(); |
|
anime time display
|
174 |
me.updateTIME(); |
adds OAT, TAS, GSPD, WindDat...
|
175 |
me.updateOAT(); |
176 |
me.updateTAS(); |
|
ajoute un timer pour cacher ...
|
177 |
me.timerTrigger(); |
séparation configuration PFD...
|
178 |
} |
ajout COMM, et factorisation...
|
179 |
me._updateRadio({auto:'nav'}); |
180 |
me._updateRadio({auto:'comm'}); |
|
softkeys are available now
|
181 |
me.updateSoftKeys(); |
commit initial
|
182 |
me.progress.removeAllChildren(); |
183 |
me.progress = nil; |
|
184 |
me.showInitProgress = nil; |
|
185 |
me._showInitProgress = nil; |
|
186 |
zkv.removeChild(me.role ~ 'init'); |
|
187 |
} |
|
188 |
}, |
|
cosmétique: folding pour les...
|
189 |
#}}} |
commit initial
|
190 | |
191 |
showInitProgress : func (role) { |
|
cosmétique: folding pour les...
|
192 |
#{{{ |
commit initial
|
193 |
me.progress = me.display.createGroup(); |
194 |
me.progress.show(); |
|
195 |
me.progress.createChild("text", role ~ " title") |
|
196 |
.setTranslation(512, 384) |
|
197 |
.setAlignment("center-center") |
|
198 |
.setFont("LiberationFonts/LiberationSans-Italic.ttf") |
|
199 |
.setFontSize(64, 1) |
|
200 |
.setColor(1,1,1) |
|
201 |
.setText("ZKV1000 " ~ role ~ " init"); |
|
202 | ||
203 |
zkv.getNode(role ~ 'init',1).setIntValue(1); |
|
204 | ||
205 |
me._showInitProgress(me.progress.createChild("text", role ~ "progress") |
|
206 |
.setTranslation(512, 484) |
|
207 |
.setAlignment("center-center") |
|
208 |
.setFont("LiberationFonts/LiberationSans-Bold.ttf") |
|
209 |
.setFontSize(128, 1) |
|
210 |
.setColor(1,0,0), '.'); |
|
211 |
}, |
|
cosmétique: folding pour les...
|
212 |
#}}} |
commit initial
|
213 | |
écriture du wrapper pour le ...
|
214 |
loadGroup : func (h) { |
cosmétique: folding pour les...
|
215 |
#{{{ |
écriture du wrapper pour le ...
|
216 |
if (typeof(h) != 'hash') { |
217 |
msg_dbg(sprintf("%s need a hash, but get a %s from %s", |
|
218 |
caller(0)[0], |
|
219 |
typeof(h), |
|
220 |
caller(1)[0])); |
|
221 |
return; |
|
commit initial
|
222 |
} |
écriture du wrapper pour le ...
|
223 |
var setMethod = func (e, t) { |
224 |
if (t == 'hide') |
|
225 |
me.screenElements[e].hide(); |
|
226 |
elsif (t == 'show') |
|
227 |
me.screenElements[e].show(); |
|
AI disponible
|
228 |
elsif (t == 'rot' or t == 'trans') { |
229 |
if (! contains(me.screenElements[e], t)) |
|
230 |
me.screenElements[e][t] = me.screenElements[e].createTransform(); |
|
231 |
} |
|
232 |
elsif (t == 'clip') { |
|
233 |
if (contains(me.clips, e)) |
|
234 |
me.screenElements[e].set("clip", me.clips[e]); |
|
235 |
else |
|
236 |
print('no defined clip for ' ~ e); |
|
237 |
} |
|
animation VSI
|
238 |
elsif (t == 'text') { |
239 |
if (contains(me.texts, e)) { |
|
240 |
if (contains(me.texts[e], 'alignment')) |
|
241 |
me.screenElements[e].setAlignment(me.texts[e].alignment); |
|
242 |
if (contains(me.texts[e], 'default')) |
|
243 |
me.screenElements[e].setText(me.texts[e].default); |
|
NAV disponible (hors CDI)
|
244 |
if (contains(me.texts[e], 'color')) |
245 |
me.screenElements[e].setColor(me.texts[e].color); |
|
animation VSI
|
246 |
} |
clean pre-merge
|
247 |
# else |
248 |
# print('no text format for ' ~ e); |
|
animation VSI
|
249 |
} |
commit initial
|
250 |
else |
écriture du wrapper pour le ...
|
251 |
print('unknown method ' ~ t); |
252 |
}; |
|
253 |
foreach (var todo; keys(h)) { |
|
254 |
if (typeof(h[todo]) != 'vector') h[todo] = [ h[todo] ]; |
|
255 |
foreach (var id; h[todo]) { |
|
256 |
if (! contains(me.screenElements, id)) { |
|
257 |
me.screenElements[id] = me.screen.getElementById(id); |
|
258 |
if (me.screenElements[id] != nil) |
|
259 |
setMethod(id, todo); |
|
260 |
else |
|
261 |
print('SVG ID ' ~ id ~ ' not found'); |
|
262 |
} |
|
263 |
else |
|
264 |
setMethod(id, todo); |
|
265 |
} |
|
commit initial
|
266 |
} |
267 |
}, |
|
cosmétique: folding pour les...
|
268 |
#}}} |
AI disponible
|
269 | |
270 |
clips : { |
|
cosmétique: folding pour les...
|
271 |
#{{{ |
clean pre-merge
|
272 |
PitchScale : "rect(70,664,370,256)", |
273 |
SpeedLint1 : "rect(252,226,318,204)", |
|
274 |
SpeedTape : "rect(115,239,455,156)", |
|
275 |
LintAlt : "rect(115,808,455,704)", |
|
animation ALT
|
276 |
AltLint00011 : "rect(252,804,318,771)", |
AI disponible
|
277 |
}, |
cosmétique: folding pour les...
|
278 |
#}}} |
AI disponible
|
279 | |
animation VSI
|
280 |
texts : { |
cosmétique: folding pour les...
|
281 |
#{{{ |
animation VSI
|
282 |
VSIText : { |
283 |
alignment: "right-bottom", default : num('0'), |
|
284 |
}, |
|
animation IAS
|
285 |
Speed110 : { |
NAV disponible (hors CDI)
|
286 |
alignment : 'left-bottom' |
animation IAS
|
287 |
}, |
animation ALT (2)
|
288 |
Alt11100 : { |
NAV disponible (hors CDI)
|
289 |
alignment:'left-bottom' |
animation ALT (2)
|
290 |
}, |
clean pre-merge
|
291 |
"HDG-text" : { |
292 |
default: '---°' |
|
293 |
}, |
|
NAV disponible (hors CDI)
|
294 |
'nav1-standby-freq' : { |
295 |
color: [0, 1, 1], |
|
296 |
}, |
|
297 |
'nav1-id' : { |
|
298 |
default: '' |
|
299 |
}, |
|
300 |
'nav2-id' : { |
|
301 |
default: '' |
|
302 |
}, |
|
adds OAT, TAS, GSPD, WindDat...
|
303 |
'TAS-text' : { |
304 |
alignment : 'right-bottom', |
|
305 |
}, |
|
306 |
'GSPD-text' : { |
|
307 |
alignment : 'right-bottom', |
|
308 |
}, |
|
animation VSI
|
309 |
}, |
cosmétique: folding pour les...
|
310 |
#}}} |
animation VSI
|
311 | |
softkeys are available now
|
312 |
updateSoftKeys : func { |
313 |
# update SoftKeys boxes {{{ |
|
314 |
# grey background code = #353939 |
|
315 |
# on PFD the last boxes are always BACK and ALERTS |
|
316 |
if (me.role == 'PFD') { |
|
317 |
me.screenElements[sprintf("SoftKey%02i-text", 11)] |
|
318 |
.setText('ALERTS'); |
|
319 |
if (size(me.device.softkeys.path) != 0) |
|
320 |
me.screenElements[sprintf("SoftKey%02i-text", 10)] |
|
321 |
.setText('BACK'); |
|
322 |
} |
|
323 | ||
324 |
var path = keyMap[me.role]; |
|
325 |
foreach (var p; me.device.softkeys.path) |
|
326 |
path = path[p]; |
|
327 | ||
328 |
# feeding with empty menus the first boxes |
|
329 |
var start = (contains(path, 'first')) ? path.first : 0; |
|
330 |
for (var k = 0; k < start; k+=1) { |
|
331 |
me.screenElements[sprintf("SoftKey%02i-text", k)] |
|
332 |
.setText(''); |
|
333 |
} |
|
334 |
# filling with the content the next boxes |
|
335 |
forindex (var k; path.texts) { |
|
336 |
var i = k + start; |
|
337 |
me.screenElements[sprintf("SoftKey%02i-text", i)] |
|
338 |
.setText(path.texts[k]); |
|
339 |
} |
|
340 |
# feeding the last boxes with empty string |
|
341 |
var end = (me.role == 'PFD') ? 10 : 12; |
|
342 |
if (size(path.texts) + start < end) { |
|
343 |
start = size(path.texts) + start; |
|
344 |
for (var k = start; k < end; k += 1) |
|
345 |
me.screenElements[sprintf("SoftKey%02i-text", k)] |
|
346 |
.setText(''); |
|
347 |
} |
|
348 |
}, |
|
349 |
#}}} |
|
350 | ||
adds OAT, TAS, GSPD, WindDat...
|
351 |
update : func { |
352 |
# updates roll, pitch, VSI, IAS, altitude and HDG {{{ |
|
353 |
me._updated_roll = getprop('/orientation/roll-deg'); |
|
354 |
me._updated_pitch = getprop('orientation/pitch-deg'); |
|
355 |
me._updated_vsi = getprop('/instrumentation/vertical-speed-indicator/indicated-speed-fpm'); |
|
356 |
me._updated_ias = getprop('/velocities/airspeed-kt'); |
|
357 |
me._updated_alt = getprop('/instrumentation/altimeter/indicated-altitude-ft'); |
|
358 |
me._updated_hdg = getprop('/orientation/heading-deg'); |
|
359 |
settimer(func me.update(), 0.05); |
|
360 |
}, |
|
361 |
_updated_roll : 0, |
|
362 |
_updated_pitch : 0, |
|
363 |
_updated_vsi : 0, |
|
364 |
_updated_ias : 0, |
|
365 |
_updated_alt : 0, |
|
366 |
_updated_hdg : 0, |
|
367 |
#}}} |
|
368 | ||
369 |
updateAI: func(){ |
|
cosmétique: folding pour les...
|
370 |
#{{{ |
adds OAT, TAS, GSPD, WindDat...
|
371 |
var pitch = me._updated_pitch; |
372 |
var roll = me._updated_roll; |
|
AI disponible
|
373 |
if (pitch > 80) |
374 |
pitch = 80; |
|
clean pre-merge
|
375 |
elsif (pitch < -80) |
AI disponible
|
376 |
pitch = -80; |
377 |
me.screenElements.Horizon |
|
378 |
.setRotation(-roll * D2R) |
|
379 |
.setTranslation(0, pitch * 6.8571428); |
|
AI disponible, avec bankPoin...
|
380 |
me.screenElements.bankPointer |
381 |
.setRotation(-roll * D2R); |
|
adds OAT, TAS, GSPD, WindDat...
|
382 |
settimer(func me.updateAI(), 0.1); |
AI disponible
|
383 |
}, |
cosmétique: folding pour les...
|
384 |
#}}} |
animation VSI
|
385 | |
adds OAT, TAS, GSPD, WindDat...
|
386 |
updateVSI: func () { |
comment on the folds
|
387 |
# animate VSI {{{ |
adds OAT, TAS, GSPD, WindDat...
|
388 |
var vsi = me._updated_vsi; |
animation VSI
|
389 |
me.screenElements.VSIText |
390 |
.setText(num(math.round(vsi, 10))); |
|
391 |
if (vsi > 4500) |
|
392 |
vsi = 4500; |
|
393 |
elsif (vsi < -4500) |
|
394 |
vsi = -4500; |
|
395 |
me.screenElements.VSI |
|
396 |
.setTranslation(0, vsi * -0.03465); |
|
adds OAT, TAS, GSPD, WindDat...
|
397 |
settimer(func me.updateVSI(), 0.1); |
animation VSI
|
398 |
}, |
cosmétique: folding pour les...
|
399 |
#}}} |
animation IAS
|
400 | |
adds OAT, TAS, GSPD, WindDat...
|
401 |
updateIAS: func () { |
comment on the folds
|
402 |
# animates the IAS lint (PFD) {{{ |
adds OAT, TAS, GSPD, WindDat...
|
403 |
var ias = me._updated_ias; |
animation IAS
|
404 |
if (ias >= 10) |
405 |
me.screenElements.Speed110 |
|
406 |
.setText(sprintf("% 2u",num(math.floor(ias/10)))); |
|
407 |
else |
|
408 |
me.screenElements.Speed110 |
|
409 |
.setText(''); |
|
410 |
me.screenElements.SpeedLint1 |
|
411 |
.setTranslation(0,(math.mod(ias,10) + (ias >= 10)*10) * 36); |
|
412 |
me.screenElements.SpeedTape |
|
413 |
.setTranslation(0,ias * 5.711); |
|
adds OAT, TAS, GSPD, WindDat...
|
414 |
if (ias > me._ias_vne and ! me._ias_already_exceeded) { # easier than .getColorFill |
415 |
me._ias_already_exceeded = 1; |
|
416 |
me.screenElements['IAS-bg'] |
|
417 |
.setColorFill(1,0,0); |
|
418 |
} |
|
419 |
elsif (ias < me._ias_vne and me._ias_already_exceeded) { # easier than .getColorFill |
|
420 |
me._ias_already_exceeded = 0; |
|
421 |
me.screenElements['IAS-bg'] |
|
422 |
.setColorFill(0,0,0); |
|
423 |
} |
|
trends animation
|
424 |
var now = systime(); |
425 |
# estimated speed in 6s |
|
426 |
var Sy = 6 * (ias - me._last_ias_kt) / (now - me._last_ias_s); |
|
427 |
if (abs(Sy) > 30) |
|
428 |
Sy = 30 * abs(Sy)/Sy; # = -30 or 30 |
|
429 |
me.screenElements['Airspeed-Trend-Indicator'] |
|
430 |
.setScale(1,Sy) |
|
431 |
.setTranslation(0, -284.5 * (Sy - 1)); |
|
432 |
me._last_ias_kt = ias; |
|
433 |
me._last_ias_s = now; |
|
adds OAT, TAS, GSPD, WindDat...
|
434 |
settimer(func me.updateIAS(), 0.1); |
animation IAS
|
435 |
}, |
trends animation
|
436 |
_last_ias_kt : 0, |
437 |
_last_ias_s : systime(), |
|
adds OAT, TAS, GSPD, WindDat...
|
438 |
_ias_vne : 999, |
439 |
_ias_already_exceeded : 0, |
|
cosmétique: folding pour les...
|
440 |
#}}} |
animation ALT
|
441 | |
adds OAT, TAS, GSPD, WindDat...
|
442 |
updateTAS: func { |
443 |
# updates the True Airspeed and GroundSpeed indicators {{{ |
|
444 |
me.screenElements['TAS-text'] |
|
445 |
.setText(sprintf('%iKT', getprop('/instrumentation/airspeed-indicator/true-speed-kt'))); |
|
446 |
me.screenElements['GSPD-text'] |
|
447 |
.setText(sprintf('%iKT', getprop('/velocities/groundspeed-kt'))); |
|
448 |
settimer(func me.updateTAS(), 0.5); |
|
449 |
}, |
|
450 |
#}}} |
|
451 | ||
452 |
updateALT: func () { |
|
453 |
# animates the altitude lint (PFD) {{{ |
|
454 |
var alt = me._updated_alt; |
|
animation ALT
|
455 |
if (alt < 0) |
456 |
me.screenElements.Alt11100 |
|
457 |
.setText(sprintf("% 3i",math.ceil(alt/100))); |
|
458 |
elsif (alt < 100) |
|
459 |
me.screenElements.Alt11100 |
|
460 |
.setText(''); |
|
461 |
else |
|
462 |
me.screenElements.Alt11100 |
|
463 |
.setText(sprintf("% 3i",math.floor(alt/100))); |
|
464 |
me.screenElements.AltLint00011 |
|
465 |
.setTranslation(0,math.fmod(alt,100) * 1.24); |
|
466 | ||
467 |
# From Farmin/G1000 http://wiki.flightgear.org/Project_Farmin/FG1000 |
|
468 |
if (alt> -1000 and alt< 1000000) { |
|
469 |
var Offset10 = 0; |
|
470 |
var Offset100 = 0; |
|
471 |
var Offset1000 = 0; |
|
472 |
if (alt< 0) { |
|
473 |
var Ne = 1; |
|
474 |
var alt= -alt; |
|
475 |
} |
|
476 |
else |
|
477 |
var Ne = 0; |
|
478 | ||
479 |
var Alt10 = math.mod(alt,100); |
|
480 |
var Alt100 = int(math.mod(alt/100,10)); |
|
481 |
var Alt1000 = int(math.mod(alt/1000,10)); |
|
482 |
var Alt10000 = int(math.mod(alt/10000,10)); |
|
483 |
var Alt20 = math.mod(Alt10,20)/20; |
|
484 |
if (Alt10 >= 80) |
|
485 |
var Alt100 += Alt20; |
|
486 | ||
487 |
if (Alt10 >= 80 and Alt100 >= 9) |
|
488 |
var Alt1000 += Alt20; |
|
489 | ||
490 |
if (Alt10 >= 80 and Alt100 >= 9 and Alt1000 >= 9) |
|
491 |
var Alt10000 += Alt20; |
|
492 | ||
493 |
if (alt> 100) |
|
494 |
var Offset10 = 100; |
|
495 | ||
496 |
if (alt> 1000) |
|
497 |
var Offset100 = 10; |
|
498 | ||
499 |
if (alt> 10000) |
|
500 |
var Offset1000 = 10; |
|
501 | ||
502 |
if (!Ne) { |
|
503 |
me.screenElements.LintAlt.setTranslation(0,(math.mod(alt,100))*0.57375); |
|
504 |
var altCentral = (int(alt/100)*100); |
|
505 |
} |
|
506 |
elsif (Ne) { |
|
507 |
me.screenElements.LintAlt.setTranslation(0,(math.mod(alt,100))*-0.57375); |
|
508 |
var altCentral = -(int(alt/100)*100); |
|
509 |
} |
|
510 |
me.screenElements["AltBigC"].setText(""); |
|
511 |
me.screenElements["AltSmallC"].setText(""); |
|
512 |
for (var place = 1; place <= 6; place += 1) { |
|
513 |
var altUP = altCentral + (place*100); |
|
514 |
var offset = -30.078; |
|
515 |
if (altUP < 0) { |
|
516 |
var altUP = -altUP; |
|
517 |
var prefix = "-"; |
|
518 |
var offset += 15.039; |
|
519 |
} |
|
520 |
else |
|
521 |
var prefix = ""; |
|
522 | ||
523 |
if (altUP == 0) { |
|
524 |
var AltBigUP = ""; |
|
525 |
var AltSmallUP = "0"; |
|
526 | ||
527 |
} |
|
528 |
elsif (math.mod(altUP,500) == 0 and altUP != 0) { |
|
529 |
var AltBigUP = sprintf(prefix~"%1d", altUP); |
|
530 |
var AltSmallUP = ""; |
|
531 |
} |
|
532 |
elsif (altUP < 1000 and (math.mod(altUP,500))) { |
|
533 |
var AltBigUP = ""; |
|
534 |
var AltSmallUP = sprintf(prefix~"%1d", int(math.mod(altUP,1000))); |
|
535 |
var offset = -30.078; |
|
536 |
} |
|
537 |
elsif ((altUP < 10000) and (altUP >= 1000) and (math.mod(altUP,500))) { |
|
538 |
var AltBigUP = sprintf(prefix~"%1d", int(altUP/1000)); |
|
539 |
var AltSmallUP = sprintf("%1d", int(math.mod(altUP,1000))); |
|
540 |
var offset += 15.039; |
|
541 |
} |
|
542 |
else { |
|
543 |
var AltBigUP = sprintf(prefix~"%1d", int(altUP/1000)); |
|
544 |
var mod = int(math.mod(altUP,1000)); |
|
545 |
var AltSmallUP = sprintf("%1d", mod); |
|
546 |
var offset += 30.078; |
|
547 |
} |
|
548 | ||
549 |
me.screenElements["AltBigU"~place].setText(AltBigUP); |
|
550 |
me.screenElements["AltSmallU"~place].setText(AltSmallUP); |
|
551 |
me.screenElements["AltSmallU"~place].setTranslation(offset,0); |
|
552 |
var altDOWN = altCentral - (place*100); |
|
553 |
var offset = -30.078; |
|
554 |
if (altDOWN < 0) { |
|
555 |
var altDOWN = -altDOWN; |
|
556 |
var prefix = "-"; |
|
557 |
var offset += 15.039; |
|
558 |
} |
|
559 |
else |
|
560 |
var prefix = ""; |
|
561 | ||
562 |
if (altDOWN == 0) { |
|
563 |
var AltBigDOWN = ""; |
|
564 |
var AltSmallDOWN = "0"; |
|
565 |
} |
|
566 |
elsif (math.mod(altDOWN,500) == 0 and altDOWN != 0) { |
|
567 |
var AltBigDOWN = sprintf(prefix~"%1d", altDOWN); |
|
568 |
var AltSmallDOWN = ""; |
|
569 |
} |
|
570 |
elsif (altDOWN < 1000 and (math.mod(altDOWN,500))) { |
|
571 |
var AltBigDOWN = ""; |
|
572 |
var AltSmallDOWN = sprintf(prefix~"%1d", int(math.mod(altDOWN,1000))); |
|
573 |
var offset = -30.078; |
|
574 |
} |
|
575 |
elsif ((altDOWN < 10000) and (altDOWN >= 1000) and (math.mod(altDOWN,500))) { |
|
576 |
var AltBigDOWN = sprintf(prefix~"%1d", int(altDOWN/1000)); |
|
577 |
var AltSmallDOWN = sprintf("%1d", int(math.mod(altDOWN,1000))); |
|
578 |
var offset += 15.039; |
|
579 |
} |
|
580 |
else { |
|
581 |
var AltBigDOWN = sprintf(prefix~"%1d", int(altDOWN/1000)); |
|
582 |
var mod = int(math.mod(altDOWN,1000)); |
|
583 |
var AltSmallDOWN = sprintf("%1d", mod); |
|
584 |
var offset += 30.078; |
|
585 |
} |
|
586 |
me.screenElements["AltBigD"~place].setText(AltBigDOWN); |
|
587 |
me.screenElements["AltSmallD"~place].setText(AltSmallDOWN); |
|
588 |
me.screenElements["AltSmallD"~place].setTranslation(offset,0); |
|
589 |
} |
|
590 |
} |
|
adds OAT, TAS, GSPD, WindDat...
|
591 |
me.updateSelectedALT(); |
trends animation
|
592 |
var now = systime(); |
593 |
# altitude in 6s |
|
594 |
var Sy = .3 * (alt - me._last_alt_ft) / (now - me._last_alt_s); # scale = 1/20ft |
|
595 |
if (abs(Sy) > 15) |
|
596 |
Sy = 15 * abs(Sy)/Sy; # = -15 or 15 |
|
597 |
me.screenElements['Altitude-Trend-Indicator'] |
|
598 |
.setScale(1,Sy) |
|
599 |
.setTranslation(0, -284.5 * (Sy - 1)); |
|
600 |
me._last_alt_ft = alt; |
|
601 |
me._last_alt_s = now; |
|
adds OAT, TAS, GSPD, WindDat...
|
602 |
settimer(func me.updateALT(), 0.2); |
animation ALT
|
603 |
}, |
trends animation
|
604 |
_last_alt_ft : 0, |
605 |
_last_alt_s : systime(), |
|
cosmétique: folding pour les...
|
606 |
#}}} |
animation HSI
|
607 | |
adds OAT, TAS, GSPD, WindDat...
|
608 |
updateHSI : func () { |
comment on the folds
|
609 |
# rotates the compass (PFD) {{{ |
adds OAT, TAS, GSPD, WindDat...
|
610 |
var hdg = me._updated_hdg; |
animation HSI
|
611 |
me.screenElements.Rose |
612 |
.setRotation(-hdg * D2R); |
|
613 |
me.screenElements['HDG-text'] |
|
614 |
.setText(sprintf("%03u°", hdg)); |
|
adds OAT, TAS, GSPD, WindDat...
|
615 |
settimer(func me.updateHSI(), 0.1); |
animation HSI
|
616 |
}, |
cosmétique: folding pour les...
|
617 |
#}}} |
NAV disponible (hors CDI)
|
618 | |
animation HDG bug
|
619 |
updateHDG : func (hdg) { |
comment on the folds
|
620 |
# moves the heading bug and display heading-deg for 3 seconds (PFD) {{{ |
animation HDG bug
|
621 |
if (me.role == 'MFD') |
622 |
return; |
|
623 |
me.screenElements['Heading-bug'] |
|
624 |
.setRotation(hdg * D2R); |
|
625 |
me.screenElements['SelectedHDG-bg'] |
|
626 |
.show(); |
|
627 |
me.screenElements['SelectedHDG-bgtext'] |
|
628 |
.show(); |
|
629 |
me.screenElements['SelectedHDG-text'] |
|
630 |
.setText(sprintf('%03d°%s', hdg, '')) |
|
631 |
.show(); |
|
632 |
me.addTimer(3, ['SelectedHDG-text', 'SelectedHDG-bgtext', 'SelectedHDG-bg']); |
|
633 |
}, |
|
cosmétique: folding pour les...
|
634 |
#}}} |
animation HDG bug
|
635 | |
anime CRS
|
636 |
updateCRS : func (crs) { |
637 |
# TODO: update display for NAV/GPS/BRG courses {{{ |
|
638 |
if (me.role == 'MFD') |
|
639 |
return; |
|
640 |
me.screenElements['SelectedCRS-bg'] |
|
641 |
.show(); |
|
642 |
me.screenElements['SelectedCRS-bgtext'] |
|
643 |
.show(); |
|
644 |
me.screenElements['SelectedCRS-text'] |
|
645 |
.setText(sprintf('%03d°%s', crs, '')) |
|
646 |
.show(); |
|
647 |
me.addTimer(3, ['SelectedCRS-text', 'SelectedCRS-bgtext', 'SelectedCRS-bg']); |
|
648 |
}, |
|
649 |
#}}} |
|
650 | ||
adds OAT, TAS, GSPD, WindDat...
|
651 |
updateSelectedALT : func { |
652 |
# animation for altitude section, called via updatedALT {{{ |
|
653 |
var selected_alt = getprop('/instrumentation/zkv1000/afcs/selected-alt-ft'); |
|
654 |
var delta_alt = me._updated_alt - selected_alt; |
|
655 |
if (abs(delta_alt) > 300) |
|
656 |
delta_alt = 300 * abs(delta_alt)/delta_alt; |
|
657 |
me.screenElements['SelectedAlt-top'] |
|
658 |
.setVisible(abs(delta_alt) > 100); |
|
659 |
me.screenElements['SelectedAlt-bug'] |
|
660 |
.setTranslation(0, delta_alt * 0.567); # 170/300 = 0.567 |
|
661 |
me.screenElements['SelectedAlt-text'] |
|
662 |
.setText(sprintf("%i", selected_alt)); |
|
663 |
}, |
|
664 |
#}}} |
|
665 | ||
ajout COMM, et factorisation...
|
666 |
_updateRadio: func { |
comment on the folds
|
667 |
# common parts for NAV/LOC/COMM radios{{{ |
ajout COMM, et factorisation...
|
668 |
# arg[0]._r = <comm|nav> |
669 |
if (contains(arg[0], "active")) { |
|
670 |
if (arg[0]['active'] == 'none') { |
|
671 |
me.screenElements[arg[0]._r ~ '1-selected-freq'] |
|
672 |
.setColor(1,1,1); |
|
673 |
me.screenElements[arg[0]._r ~ '2-selected-freq'] |
|
674 |
.setColor(1,1,1); |
|
675 |
} |
|
676 |
else { |
|
677 |
me.screenElements[arg[0]._r ~ arg[0]['active'] ~ '-selected-freq'] |
|
678 |
.setColor(0,1,0); |
|
679 |
me.screenElements[arg[0]._r ~ arg[0].inactive ~ '-selected-freq'] |
|
680 |
.setColor(1,1,1); |
|
681 |
} |
|
682 |
} |
|
683 |
if (contains(arg[0], 'tune')) { |
|
684 |
# n = 0 -> NAV1/COMM1 |
|
685 |
# n = 1 -> NAV1/COMM2 |
|
686 |
me.screenElements[arg[0]._r ~ '-freq-switch'] |
|
687 |
.setTranslation(0, arg[0].tune * 25); |
|
688 |
me.screenElements[arg[0]._r ~ (arg[0].tune + 1) ~ '-standby-freq'] |
|
689 |
.setColor(0,1,1); |
|
690 |
me.screenElements[arg[0]._r ~ ((arg[0].tune == 0) + 1) ~ '-standby-freq'] |
|
691 |
.setColor(1,1,1); |
|
692 |
} |
|
693 |
if (contains(arg[0], 'refresh')) { |
|
694 |
# rafraichi une seule ligne NAV1/COMM1 ou NAV2/COMM2 |
|
695 |
var fmt = (arg[0]._r == 'nav') ? '%.2f' : '%.3f'; |
|
696 |
me.screenElements[arg[0]._r ~ arg[0].refresh ~ '-selected-freq'] |
|
697 |
.setText(sprintf(fmt, getprop('/instrumentation/' |
|
698 |
~ arg[0]._r ~ '[' ~ (arg[0].refresh - 1) ~ ']/frequencies/selected-mhz'))); |
|
699 |
me.screenElements[arg[0]._r ~ arg[0].refresh ~ '-standby-freq'] |
|
700 |
.setText(sprintf(fmt, getprop('/instrumentation/' |
|
701 |
~ arg[0]._r ~ '[' ~ (arg[0].refresh - 1) ~ ']/frequencies/standby-mhz'))); |
|
702 |
} |
|
703 |
if (contains(arg[0], 'set')) { |
|
704 |
# positionne la valeur modifiée, les listeners "trigguent" en permanence ces propriétés, donc exit |
|
705 |
var n = getprop('/instrumentation/zkv1000/radios/' ~ arg[0]._r ~ '-tune'); |
|
706 |
var fmt = (arg[0]._r == 'nav') ? '%.2f' : '%.3f'; |
|
707 |
me.screenElements[arg[0]._r ~ (n + 1) ~ '-standby-freq'] |
|
708 |
.setText(getprop('/instrumentation/' ~ arg[0]._r ~ '[' ~ n ~ ']/frequencies/standby-mhz')); |
|
709 |
} |
|
710 |
if (contains(arg[0], 'auto')) { |
|
711 |
# pour rafraichir automagiquement, toutes les deux secondes un refresh pour un NAV |
|
712 |
var radio = arg[0].auto; |
|
713 |
me._updateRadio({refresh: 1, _r: radio}); |
|
714 |
settimer(func me._updateRadio({refresh: 2, _r: radio}), 1); |
|
715 |
settimer(func me._updateRadio({auto: radio}), 2); |
|
716 |
} |
|
717 |
}, |
|
cosmétique: folding pour les...
|
718 |
#}}} |
ajout COMM, et factorisation...
|
719 | |
NAV disponible (hors CDI)
|
720 |
updateNAV : func { |
comment on the folds
|
721 |
# update NAV/LOC rodios display upper left (PFD/MFD){{{ |
NAV disponible (hors CDI)
|
722 |
# made active via menu |
723 |
if (contains(arg[0], "active")) { |
|
724 |
if (arg[0]['active'] == 'none') { |
|
ajout COMM, et factorisation...
|
725 |
arg[0]._r = 'nav'; |
726 |
me._updateRadio(arg[0]); |
|
NAV disponible (hors CDI)
|
727 |
me.screenElements['nav1-id'] |
728 |
.setColor(1,1,1); |
|
729 |
me.screenElements['nav2-id'] |
|
730 |
.setColor(1,1,1); |
|
731 |
me.screenElements['NAV1-pointer'] |
|
732 |
.hide(); |
|
733 |
me.screenElements['NAV2-pointer'] |
|
734 |
.hide(); |
|
735 |
} |
|
736 |
else { |
|
ajout COMM, et factorisation...
|
737 |
arg[0]._r = 'nav'; |
738 |
arg[0].inactive = (arg[0]['active'] == 1) + 1; |
|
739 |
me._updateRadio(arg[0]); |
|
NAV disponible (hors CDI)
|
740 |
me.screenElements['nav' ~ arg[0]['active'] ~ '-id'] |
741 |
.setColor(0,1,0); |
|
742 |
me.screenElements['NAV' ~ arg[0]['active'] ~ '-pointer'] |
|
743 |
.show(); |
|
ajout COMM, et factorisation...
|
744 |
me.screenElements['nav' ~ arg[0].inactive ~ '-id'] |
745 |
.setColor(1,1,1); |
|
NAV disponible (hors CDI)
|
746 |
# me.screenElements['HDI'] |
747 |
# .setRotation(); |
|
748 |
# me.screenElements['NAV' ~ inactive ~ '-pointer'] |
|
749 |
# .hide(); |
|
750 |
# foreach (var e; [ 'FROM', 'TO', 'CDI' ]) |
|
751 |
# me.screenElements['NAV' ~ inactive ~ '-' ~ e] |
|
752 |
# .hide(); |
|
753 |
} |
|
754 |
} |
|
ajout COMM, et factorisation...
|
755 |
elsif (contains(arg[0], 'nav-id')) { |
Correction swap NAV tuning
|
756 |
# TODO: récupérer la valeur via les paramètres transmis du listener |
ajout COMM, et factorisation...
|
757 |
if (arg[0].val == nil) |
758 |
arg[0].val = ''; |
|
NAV disponible (hors CDI)
|
759 |
me.screenElements["nav" ~ arg[0]['nav-id'] ~ "-id"] |
ajout COMM, et factorisation...
|
760 |
.setText(arg[0].val); |
NAV disponible (hors CDI)
|
761 |
} |
ajout COMM, et factorisation...
|
762 |
else { |
763 |
arg[0]._r = 'nav'; |
|
764 |
me._updateRadio(arg[0]); |
|
NAV disponible (hors CDI)
|
765 |
} |
766 |
}, |
|
cosmétique: folding pour les...
|
767 |
#}}} |
ajout COMM, et factorisation...
|
768 | |
769 |
updateCOMM: func { |
|
comment on the folds
|
770 |
# update COMM radios display upper right (PFD/MFD){{{ |
ajout COMM, et factorisation...
|
771 |
arg[0]._r = 'comm'; |
772 |
me._updateRadio(arg[0]); |
|
773 |
}, |
|
cosmétique: folding pour les...
|
774 |
#}}} |
anime time display
|
775 | |
776 |
updateTIME : func { |
|
777 |
# updates the displayed time botoom left {{{ |
|
778 |
me.screenElements['TIME-text'] |
|
779 |
.setText(getprop('/sim/time/gmt-string')); |
|
780 |
settimer(func me.updateTIME(), 1); |
|
781 |
}, |
|
782 |
#}}} |
|
adds OAT, TAS, GSPD, WindDat...
|
783 | |
784 |
updateOAT : func { |
|
785 |
# update OAT display on normal and reversionnary modes (every 3s) {{{ |
|
786 |
var tmp = getprop('/environment/temperature-deg' ~ me._oat_unit); |
|
787 |
me.screenElements['OAT-text'] |
|
788 |
.setText(sprintf((abs(tmp) < 10) ? "%.1f %s" : "%i %s", tmp, (me._oat_unit == 'c') ? '°C' : 'F')); |
|
789 |
settimer(func me.updateOAT(), 3); |
|
790 |
}, |
|
791 |
_oat_unit : 'c', |
|
792 |
#}}} |
|
793 | ||
794 |
updateWindData : func { |
|
795 |
# update the window text and arrows for OPTN1/2 {{{ |
|
796 |
if (me._winddata_optn == 0) |
|
797 |
return; |
|
798 |
var wind_hdg = getprop('/environment/wind-from-heading-deg'); |
|
799 |
var wind_spd = getprop('/environment/wind-speed-kt'); |
|
800 |
var alpha = wind_hdg - me._updated_hdg; |
|
801 |
if (me._winddata_optn == 1) { |
|
802 |
me.screenElements['WindData-OPTN1-HDG'] |
|
803 |
.setRotation((alpha + 180) * D2R); |
|
804 |
me.screenElements['WindData-OPTN1-HDG-text'] |
|
805 |
.setText(sprintf("%03i°", wind_hdg)); |
|
806 |
me.screenElements['WindData-OPTN1-SPD-text'] |
|
807 |
.setText(int(wind_spd) ~ 'KT'); |
|
808 |
} |
|
809 |
else { # me._winddata_optn == 2 |
|
810 |
alpha *= D2R; |
|
811 |
var Vt = wind_spd * math.sin(alpha); |
|
812 |
var Ve = wind_spd * math.cos(alpha); |
|
813 |
if (Vt != 0) { |
|
814 |
me.screenElements['WindData-OPTN2-crosswind-text'] |
|
815 |
.setText(sprintf('%i', abs(Vt))); |
|
816 |
me.screenElements['WindData-OPTN2-crosswind'] |
|
817 |
.setScale(-abs(Vt)/Vt, 1) |
|
818 |
.setTranslation(-35 * (abs(Vt)/Vt + 1), 0); |
|
819 |
} |
|
820 |
if (Ve != 0) { |
|
821 |
me.screenElements['WindData-OPTN2-headwind-text'] |
|
822 |
.setText(sprintf('%i', abs(Ve))); |
|
823 |
me.screenElements['WindData-OPTN2-headwind'] |
|
824 |
.setScale(1, abs(Ve)/Ve) |
|
825 |
.setTranslation(0, 515 * (1 - abs(Ve)/Ve)); |
|
826 |
} |
|
827 |
} |
|
828 |
settimer(func me.updateWindData(), 0.5); |
|
829 |
}, |
|
830 |
_winddata_optn : 0, |
|
831 |
#}}} |
|
commit initial
|
832 |
}; |
softkeys are available now
|
833 | |
834 |
var keyMap = { |
|
add new vim folds
|
835 |
# softkeys map for PFD and MFD {{{ |
softkeys are available now
|
836 |
PFD : { |
837 |
first : 1, |
|
838 |
texts : ['INSET', 'SENSOR', 'PFD', 'OBS', 'CDI', 'DME', 'XPDR', 'IDENT', 'TMR/REF', 'NRST' ], |
|
839 |
INSET : { |
|
840 |
texts : ['OFF', 'DCLTR', 'WXLGND', 'TRAFFIC', 'TOPO', 'TERRAIN', 'STRMSCP', 'NEXRAD-C', 'XM LTNG', 'METAR'], |
|
841 |
}, |
|
842 |
SENSOR : { |
|
843 |
first : 2, |
|
844 |
texts : [ 'ADC1', 'ADC2', '', 'AHRS1', 'AHRS2'], |
|
845 |
}, |
|
846 |
PFD : { |
|
847 |
texts : [ 'SYN VIS', 'DFLTS', 'AOA/WIND', 'DME', 'BRG', 'HSI FMT', '', '', 'ALT UNIT', 'STD BARO' ], |
|
848 |
'SYN VIS' : { |
|
849 |
texts : [ 'PATHWAY', 'SYN TERR', 'HR2NHDG', 'APTSIGNS', 'FPM'], |
|
850 |
}, |
|
851 |
'AOA/WIND' : { |
|
852 |
first : 4, |
|
853 |
texts : ['AOA', 'WIND'], |
|
854 |
AOA : { |
|
855 |
first : 5, |
|
856 |
texts : ['AOA ON', 'AOA AUTO'], |
|
857 |
}, |
|
858 |
WIND : { |
|
859 |
first : 2, |
|
860 |
texts : ['OPTN1', 'OPTN2', '', 'OFF'], |
|
861 |
}, |
|
862 |
}, |
|
863 |
'HSI FMT' : { |
|
864 |
first : 6, |
|
865 |
texts : ['360 HSI', 'ARC HSI'], |
|
866 |
}, |
|
867 |
'ALT UNIT' : { |
|
868 |
first : 5, |
|
869 |
texts : ['METERS', '', 'IN', 'HPA'], |
|
870 |
}, |
|
871 |
}, |
|
872 |
XPDR : { |
|
873 |
first : 2, |
|
874 |
texts : ['STBY', 'ON', 'ALT', '', 'VFR', 'CODE', 'IDENT'], |
|
875 |
CODE : { |
|
876 |
texts : ['0', '1', '2', '3', '4', '5', '6', '7', 'IDENT', 'BKSP'], |
|
877 |
}, |
|
878 |
}, |
|
879 |
}, |
|
880 |
MFD : { |
|
881 |
texts : ['ENGINE', '', 'MAP', '', '', '', '', '', '', 'DCLTR', 'SHW CHRT', 'CHKLIST'], |
|
882 |
MAP : { |
|
883 |
texts: ['TRAFFIC', 'PROFILE', 'TOPO', 'TERRAIN', 'AIRWAYS', 'STRMSCP','NEXRAD-C', 'XM LTNG', 'METAR', 'LEGEND', 'BACK'], |
|
884 |
}, |
|
885 |
CHKLIST : { |
|
886 |
texts : ['ENGINE', '', '', '', '', 'DONE', '', '', '', '', 'EXIT', 'EMERGCY'], |
|
887 |
}, |
|
888 |
ENGINE : { |
|
889 |
texts : ['ENGINE', 'ANTI-ICE', '', 'DCLTR', '', 'ASSIST', '', '', '', '', 'FUEL'], |
|
890 |
'ANTI-ICE' : { |
|
891 |
texts : ['LEFT', 'AUTO', 'RIGHT', '', '', '', '', '', '', '', '', 'BACK'], |
|
892 |
}, |
|
893 |
FUEL : { |
|
894 |
first : 1, |
|
895 |
texts : ['FULL', 'TABS', '', '', '', '', '', '', '', 'UNDO', 'ENTER'], |
|
896 |
}, |
|
897 |
}, |
|
898 |
}, |
|
899 |
}; |
|
add new vim folds
|
900 |
#}}} |