add vim zip-markers
|
1 |
# vim: set foldmethod=marker foldmarker={{{,}}} : |
adds AFCS
|
2 |
var APClass = { |
3 |
new : func { |
|
4 |
var m = { parents: [ APClass ] }; |
|
5 | ||
6 |
m.system = 'none'; |
|
7 |
var ap_systems = { # described AP systems to search, if it returns true system is set |
|
autopilot S-TEC 55X integrat...
|
8 |
STEC55X: func contains(stec55x, 'ITAF'), |
creates entry point for GFC7...
|
9 |
GFC700: func props.globals.getNode('/autopilot/GFC700/FSM/lateral').getPath(), |
add KAP140 to afcs
|
10 |
KAP140: func contains(kap140, 'apButton'), |
adds AFCS
|
11 |
}; |
12 |
foreach (var s; sort(keys(ap_systems), func(a,b) cmp(a,b))) { |
|
13 |
call(ap_systems[s], [], nil, nil, var errors = []); |
|
14 |
if (!size(errors)) { |
|
15 |
msg('found autopilot system: ' ~ s); |
|
16 |
m.system = s; |
|
17 |
break; |
|
18 |
} |
|
19 |
} |
|
add message if no autopilot ...
|
20 |
if (m.system == 'none') |
21 |
msg('no autopilot system found'); |
|
adds AFCS
|
22 | |
23 |
m.engaged = 0; |
|
24 | ||
25 |
if (! contains(data.timers, 'updateAP')) { |
|
26 |
data.timers.updateAP = maketimer(1, m, m.systems[m.system].updateDisplay); |
|
27 |
data.timers.updateAP.start(); |
|
28 |
} |
|
29 | ||
autopilot status with separa...
|
30 |
var ap_annun = [ |
31 |
'LATMOD-Armed-text', 'LATMOD-Active-text', |
|
32 |
'AP-Status-text', 'YD-Status-text', |
|
33 |
'VERMOD-Active-text', 'VERMOD-Reference-text', 'VERMOD-Armed-text' |
|
34 |
]; |
|
show AP infos on MFDs if the...
|
35 | |
36 |
var terminal_count = { PFD: 0, MFD: 0 }; |
|
37 |
m.terminals = []; |
|
38 |
foreach (var name; keys(flightdeck)) { |
|
39 |
terminal_count[flightdeck[name].role] += 1; |
|
40 |
if (flightdeck[name].role == 'PFD') |
|
41 |
append(m.terminals, name); |
|
42 |
} |
|
43 | ||
44 |
if (terminal_count.PFD == 0 and terminal_count.MFD > 0) { |
|
45 |
foreach (var name; keys(flightdeck)) { |
|
fix AP visibility on MFD
|
46 |
flightdeck[name].display.loadGroup({show: 'PFD-navbox'}); |
show AP infos on MFDs if the...
|
47 |
if (flightdeck[name].role == 'MFD') { |
48 |
append(m.terminals, name); |
|
49 |
flightdeck[name].display.loadGroup({text: ap_annun}); |
|
50 |
} |
|
51 |
} |
|
52 |
} |
|
53 | ||
54 |
foreach (var terminal; m.terminals) { |
|
55 |
foreach (var elem; ap_annun) { |
|
56 |
var color = (elem == 'LATMOD-Armed-text' or elem == 'VERMOD-Armed-text') ? 'white' : 'green'; |
|
57 |
flightdeck[terminal].display.screenElements[elem] |
|
58 |
.setColor(flightdeck[terminal].display.colors[color]) |
|
59 |
.setVisible(0); |
|
60 |
} |
|
61 |
foreach (var ap; [ 'AP', 'YD' ]) |
|
62 |
flightdeck[terminal].display.screenElements[ap ~ '-Status-text'] |
|
63 |
.setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX) |
|
64 |
.setColorFill(flightdeck[terminal].display.colors.black) |
|
65 |
.setText(ap); |
|
autopilot status with separa...
|
66 |
} |
67 | ||
68 |
ap_annun = nil; |
|
69 |
ap_systems = nil; |
|
show AP infos on MFDs if the...
|
70 |
terminal_count = nil; |
delete unused afcs systems
|
71 |
# delete unused systems |
72 |
foreach (var e; keys(m.systems)) |
|
73 |
if (e != m.system) |
|
74 |
delete(m.systems, e); |
|
autopilot status with separa...
|
75 | |
adds AFCS
|
76 |
if (contains(m.systems[m.system], 'hook') and typeof(m.systems[m.system].hook) == 'func') |
show AP infos on MFDs if the...
|
77 |
m.systems[m.system].hook(); |
adds AFCS
|
78 | |
79 |
return m; |
|
80 |
}, |
|
81 |
softkey: func (side, row, a) { |
|
little fixes
|
82 |
if (a) |
adds AFCS
|
83 |
return; |
afcs improvements
|
84 |
call(me.systems[me.system][side][row], [], autopilot.parents[0].systems[me.system]); |
adds AFCS
|
85 |
}, |
86 |
systems : { |
|
87 |
# L: AP FD NAV ALT VS FLC |
|
88 |
# R: YD HDG APR VNV UP DN |
|
89 |
none: { |
|
90 |
updateDisplay: func, |
|
91 |
hook: func, |
|
92 |
L: [ func, func, func, func, func, func ], |
|
93 |
R: [ func, func, func, func, func, func ], |
|
94 |
}, |
|
creates entry point for GFC7...
|
95 |
GFC700: { |
add vim zip-markers
|
96 |
# {{{ |
integration of GFC700 capabi...
|
97 |
# Many thanks to the great work on the FG1000 |
98 |
_blink_count: 0, |
|
99 |
updateDisplay: func { |
|
improve and fix afcs for mul...
|
100 |
var annunciator = props.globals.getNode('/autopilot/annunciator'); |
101 |
var ap_enabled = annunciator.getValue('autopilot-enabled'); |
|
102 | ||
103 |
var latmod = annunciator.getValue('lateral-mode'); |
|
104 |
var latmod_armed = annunciator.getValue('lateral-mode-armed'); |
|
105 |
var vertmod = annunciator.getValue('vertical-mode'); |
|
106 |
var vertmod_armed = annunciator.getValue('vertical-mode-armed'); |
|
107 |
var vertmod_target = annunciator.getValue('vertical-mode-target'); |
|
108 |
if (vertmod_target != nil) { |
|
109 |
vertmod_target = string.replace(vertmod_target, '+', utf8.chstr(9650)); |
|
110 |
vertmod_target = string.replace(vertmod_target, '-', utf8.chstr(9660)); |
|
111 |
} |
|
show AP infos on MFDs if the...
|
112 |
foreach (var terminal; me.terminals) { |
113 |
var se = flightdeck[terminal].display.screenElements; |
|
integration of GFC700 capabi...
|
114 | |
show AP infos on MFDs if the...
|
115 |
se['LATMOD-Active-text'].setVisible(latmod != nil and ap_enabled).setText(latmod); |
116 |
se['LATMOD-Armed-text'].setVisible(latmod_armed != nil and ap_enabled).setText(latmod_armed); |
|
117 |
se['VERMOD-Active-text'].setVisible(vertmod != nil and ap_enabled).setText(vertmod); |
|
118 |
se['VERMOD-Reference-text'].setVisible(vertmod_target != nil and ap_enabled).setText(vertmod_target); |
|
119 |
se['VERMOD-Armed-text'].setVisible(vertmod_armed != nil and ap_enabled).setText(vertmod_armed); |
|
120 | ||
121 |
if (se['AP-Status-text'].getVisible() and !ap_enabled) { |
|
122 |
if (math.mod(me._blink_count,2)) |
|
123 |
se['AP-Status-text'] |
|
124 |
.setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX) |
|
125 |
.setColorFill(flightdeck[terminal].display.colors.yellow) |
|
126 |
.setColor(flightdeck[terminal].display.colors.black); |
|
127 |
else |
|
128 |
se['AP-Status-text'] |
|
129 |
.setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX) |
|
130 |
.setColorFill(flightdeck[terminal].display.colors.black) |
|
131 |
.setColor(flightdeck[terminal].display.colors.yellow); |
|
132 |
me._blink_count += 1; |
|
133 |
if (me._blink_count == 5) { |
|
134 |
se['AP-Status-text'] |
|
135 |
.setColor(flightdeck[terminal].display.colors.green) |
|
136 |
.setVisible(0); |
|
137 |
me._blink_count = 0; |
|
138 |
} |
|
139 |
return; |
|
140 |
} |
|
141 |
else { |
|
142 |
se['AP-Status-text'].setVisible(ap_enabled); |
|
integration of GFC700 capabi...
|
143 |
me._blink_count = 0; |
144 |
} |
|
145 |
} |
|
146 |
}, |
|
147 |
hook: func { |
|
148 |
me._vertical_mode = globals.props.getNode("/autopilot/annunciator/vertical-mode", 1); |
|
149 |
me._pitch_setting = globals.props.getNode("/autopilot/settings/target-pitch-deg", 1); |
|
150 |
me._climb_setting = globals.props.getNode("/autopilot/settings/vertical-speed-fpm", 1); |
|
151 |
me._speed_setting = globals.props.getNode("/autopilot/settings/target-speed-kt", 1); |
|
152 |
me._vertical_mode_button = globals.props.getNode("/autopilot/vertical-mode-button", 1); |
|
153 |
me._lateral_mode_button = globals.props.getNode("/autopilot/lateral-mode-button", 1); |
|
154 |
me._ap_mode_button = globals.props.getNode("/autopilot/AP-mode-button", 1); |
|
155 |
me._ap_enabled = globals.props.getNode("/autopilot/annunciator/autopilot-enabled", 1);; |
|
156 |
me._fd_enabled = globals.props.getNode("/autopilot/annunciator/flight-director-enabled", 1);; |
|
157 | ||
158 |
}, |
|
159 |
sendModeChange: func (value) { |
|
160 |
me._vertical_mode_button.setValue(value); |
|
161 |
me._lateral_mode_button.setValue(value); |
|
162 |
if (value == "AP") { |
|
163 |
me._ap_mode_button.setValue(value); |
|
164 |
} |
|
165 |
}, |
|
166 |
handleNoseUpDown : func(value) { |
|
167 |
var vertical_mode = me._vertical_mode.getValue(); |
|
168 | ||
169 |
if (vertical_mode == "PIT") |
|
170 |
me._pitch_setting.setValue(me._pitch_setting.getValue() + (value * 1)); |
|
171 | ||
172 |
if (vertical_mode == "VS") { |
|
173 |
me._climb_setting.setValue(me._climb_setting.getValue() + (value * 100)); |
|
174 |
setprop("/autopilot/annunciator/vertical-mode-target", |
|
175 |
sprintf("%+ifpm", me._climb_setting.getValue()) |
|
176 |
); |
|
177 |
} |
|
178 | ||
179 |
if (vertical_mode == "FLC") { |
|
180 |
me._speed_setting.setValue(me._speed_setting.getValue() - (value * 1)); |
|
181 |
setprop("/autopilot/annunciator/vertical-mode-target", |
|
182 |
sprintf("%i kt", me._speed_setting.getValue()) |
|
183 |
); |
|
184 |
} |
|
185 |
}, |
|
nothing interesting
|
186 |
L: [ |
integration of GFC700 capabi...
|
187 |
func { me.sendModeChange('AP'); }, |
188 |
func { me.sendModeChange('FD'); }, |
|
fix issue with AP/NAV
|
189 |
func { setprop('/autopilot/settings/nav-mode-source', cdi.getValue('source')); me.sendModeChange('NAV'); }, |
integration of GFC700 capabi...
|
190 |
func { me.sendModeChange('ALT'); }, |
191 |
func { me.sendModeChange('VS'); }, |
|
192 |
func { me.sendModeChange('FLC'); }, |
|
193 |
], |
|
nothing interesting
|
194 |
R: [ |
integration of GFC700 capabi...
|
195 |
func { me.sendModeChange('YD'); }, |
196 |
func { me.sendModeChange('HDG'); }, |
|
197 |
func { me.sendModeChange('APR'); }, |
|
198 |
func { me.sendModeChange('VNV'); }, |
|
199 |
func { me.handleNoseUpDown(1); }, |
|
200 |
func { me.handleNoseUpDown(-1); }, |
|
201 |
], |
|
creates entry point for GFC7...
|
202 |
}, |
add vim zip-markers
|
203 |
# }}} |
autopilot S-TEC 55X integrat...
|
204 |
STEC55X: { |
add vim zip-markers
|
205 |
# {{{ |
code more clear
|
206 |
_aliases: { |
207 |
hdg: afcs.getNode('heading-bug-deg'), |
|
208 |
alt: afcs.getNode('selected-alt-ft'), |
|
209 |
NAVCourse: cdi.getNode('course'), |
|
210 |
OBSNAVNeedle: cdi.getNode('course-deflection'), |
|
211 |
}, |
|
autopilot status with separa...
|
212 |
hook : func { |
213 |
me.trimTarget = 0; |
|
code more clear
|
214 |
foreach (var a; keys(me._aliases)) stec55x[a].alias(me._aliases[a]); |
stec55x integration (suite)
|
215 |
setprop('/it-stec55x/input/ap-master-sw', 1); |
autopilot status with separa...
|
216 |
}, |
autopilot S-TEC 55X integrat...
|
217 |
updateDisplay: func { |
it-stec55x: fix error "activ...
|
218 |
var armed = ''; |
219 |
var active = ''; |
|
220 |
var reference = ''; |
|
autopilot status with separa...
|
221 |
if (stec55x.pitchMode != 1) { |
222 |
if (stec55x.ALT_annun.getBoolValue()) { |
|
223 |
if (abs(data.alt - afcs.getValue('selected-alt-ft')) < 150) { |
|
224 |
active = 'ALT'; |
|
225 |
reference = sprintf('%5d ft', afcs.getValue('selected-alt-ft')); |
|
226 |
armed = 'ALTS' |
|
227 |
} |
|
228 |
else { |
|
229 |
active = 'ALT'; |
|
230 |
reference = sprintf('%5d ft', math.round(data.alt, 10)); |
|
231 |
armed = 'ALT'; |
|
232 |
} |
|
233 |
} |
|
234 |
elsif (stec55x.VS_annun.getBoolValue()) { |
|
235 |
active = 'VS'; |
|
236 |
reference = sprintf('%s%4d fpm', |
|
autopilot S-TEC 55X integrat...
|
237 |
utf8.chstr(stec55x.vs.getValue() > 0 ? 9650 : 9660), |
238 |
math.abs(math.round(stec55x.vs.getValue(), 10))); |
|
autopilot status with separa...
|
239 |
} |
240 |
elsif (stec55x.GSArmed.getBoolValue()) { |
|
241 |
armed = 'VPATH'; |
|
242 |
active = 'GS'; |
|
243 |
} |
|
244 |
# TODO: ask Octal450 which prop or variable can be used here |
|
245 |
# elsif (stec55x.???) { |
|
246 |
# armed = 'PIT'; |
|
247 |
# active = 'ALT'; |
|
248 |
# reference = sprintf("%d°", autopilot.systems.STEC55X.trim); |
|
249 |
# } |
|
improve and fix afcs for mul...
|
250 |
} |
251 | ||
252 |
foreach (var terminal; me.terminals) { |
|
253 |
var se = flightdeck[me.terminal].display.screenElements; |
|
autopilot status with separa...
|
254 |
se['VERMOD-Active-text'].setVisible(size(active)).setText(active); |
255 |
se['VERMOD-Armed-text'].setVisible(size(armed)).setText(armed); |
|
256 |
se['VERMOD-Reference-text'].setVisible(size(reference)).setText(reference); |
|
improve and fix afcs for mul...
|
257 |
se['AP-Status-text'].setVisible(stec55x.rollMode != -1 or stec55x.pitchMode != -1); |
258 |
se['YD-Status-text'].setVisible(stec55x.yaw.getValue() != -1); |
|
259 |
if (stec55x.rollMode != -1) { |
|
260 |
se['LATMOD-Active-text'].setVisible(1).setText('ROL'); |
|
261 |
var armed = ''; |
|
262 |
foreach (var m; [ 'NAV', 'CNAV', 'REV', 'CREV' ]) |
|
263 |
if (stec55x[m]) armed = m; |
|
264 |
if (stec55x.roll.getValue() == 0) armed = 'HDG'; |
|
265 |
elsif (stec55x.roll.getValue() == 2) armed = 'GPS'; |
|
266 |
elsif (stec55x.APR_annun.getValue()) armed = 'APR'; |
|
267 |
se['LATMOD-Armed-text'] |
|
268 |
.setVisible(size(armed)) |
|
269 |
.setText(armed); |
|
270 |
} |
|
271 |
else { |
|
272 |
se['LATMOD-Active-text'].setVisible(0); |
|
273 |
se['LATMOD-Armed-text'].setVisible(0); |
|
274 |
} |
|
autopilot status with separa...
|
275 |
} |
improve and fix afcs for mul...
|
276 | |
autopilot S-TEC 55X integrat...
|
277 |
}, |
278 |
L: [ |
|
only HDG roll mode is availa...
|
279 |
func, |
autopilot S-TEC 55X integrat...
|
280 |
func { |
only HDG roll mode is availa...
|
281 |
# var apfd_master_sw = '/it-stec55x/input/apfd-master-sw'; |
282 |
# setprop(apfd_master_sw, !getprop(apfd_master_sw)); |
|
autopilot S-TEC 55X integrat...
|
283 |
}, |
284 |
func { |
|
add STEC55X GPS roll mode
|
285 |
var _roll = stec55x.roll.getValue(); |
286 |
if (_roll == 1 or _roll == 2 or _roll == 4) |
|
287 |
stec55x.roll.setValue(-1); |
|
288 |
else { |
|
289 |
stec55x.roll.setValue(1); |
|
290 |
call(stec55x.button.NAV, [], nil, stec55x); |
|
291 |
} |
|
autopilot S-TEC 55X integrat...
|
292 |
}, |
293 |
func { |
|
only HDG roll mode is availa...
|
294 |
# call(stec55x.button.ALT, [], nil, stec55x); |
autopilot S-TEC 55X integrat...
|
295 |
}, |
296 |
func { |
|
only HDG roll mode is availa...
|
297 |
# stec55x.vs.setValue(math.round(data.vsi, 100)); |
298 |
# call(stec55x.button.VS, [], nil, stec55x); |
|
autopilot S-TEC 55X integrat...
|
299 |
}, |
300 |
func, |
|
301 |
], |
|
302 |
R: [ |
|
303 |
func { |
|
only HDG roll mode is availa...
|
304 |
# var yaw_dumper_sw = '/it-stec55x/input/yaw-damper-sw'; |
305 |
# setprop(yaw_dumper_sw, !getprop(yaw_dumper_sw)); |
|
autopilot S-TEC 55X integrat...
|
306 |
}, |
307 |
func { |
|
only HDG roll mode is availa...
|
308 |
if (stec55x.roll.getValue() == 0) |
309 |
stec55x.roll.setValue(-1); |
|
310 |
else |
|
311 |
call(stec55x.button.HDG, [], nil, stec55x); |
|
autopilot S-TEC 55X integrat...
|
312 |
}, |
313 |
func { |
|
only HDG roll mode is availa...
|
314 |
# call(stec55x.button.APR, [], nil, stec55x); |
autopilot S-TEC 55X integrat...
|
315 |
}, |
316 |
func, |
|
317 |
func { # UP (trim) |
|
only HDG roll mode is availa...
|
318 |
# if (autopilot.systems.STEC55X.trimTarget > -15) |
319 |
# autopilot.systems.STEC55X.trimTarget -= 1; |
|
320 |
# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: -1}); |
|
321 |
# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 0}); |
|
autopilot S-TEC 55X integrat...
|
322 |
}, |
323 |
func { # DN (trim) |
|
only HDG roll mode is availa...
|
324 |
# if (autopilot.systems.STEC55X.trimTarget < 20) |
325 |
# autopilot.systems.STEC55X.trimTarget += 1; |
|
326 |
# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 1}); |
|
327 |
# fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: 0}); |
|
autopilot S-TEC 55X integrat...
|
328 |
}, |
329 |
], |
|
add KAP140 to afcs
|
330 |
}, |
add vim zip-markers
|
331 |
# }}} |
add KAP140 to afcs
|
332 |
KAP140: { |
add vim zip-markers
|
333 |
# {{{ |
add KAP140 to afcs
|
334 |
_blink_count: 0, |
335 |
updateDisplay: func { |
|
336 |
var latmod = latmod_armed = vertmod = vertmod_armed = ""; |
|
337 |
var vertmod_target = 0; |
|
fix syntax error
|
338 |
var ap_enabled = kap140.lockRollMode.getValue() != kap140.rollModes["OFF"] |
339 |
or kap140.lockPitchMode.getValue() != kap140.pitchModes["OFF"]; |
|
add KAP140 to afcs
|
340 | |
341 |
if (ap_enabled) { |
|
342 |
foreach (var mode; keys(kap140.rollModes)) |
|
343 |
if (kap140.lockRollMode.getValue() == kap140.rollModes[mode]) { |
|
344 |
latmod = mode; |
|
345 |
break; |
|
346 |
} |
|
347 | ||
348 |
foreach (var mode; keys(kap140.rollArmModes)) |
|
349 |
if (kap140.lockRollArm.getValue() == kap140.rollArmModes[mode]) { |
|
350 |
latmod_armed = mode; |
|
351 |
break; |
|
352 |
} |
|
353 | ||
354 |
foreach (var mode; keys(kap140.pitchModes)) |
|
355 |
if (kap140.lockPitchMode.getValue() == kap140.pitchModes[mode]) { |
|
356 |
vertmod = mode; |
|
357 |
break; |
|
358 |
} |
|
359 | ||
360 |
foreach (var mode; keys(kap140.pitchArmModes)) |
|
361 |
if (kap140.lockPitchArm.getValue() == kap140.pitchArmModes[mode]) { |
|
362 |
vertmod_armed = mode; |
|
363 |
break; |
|
364 |
} |
|
365 | ||
366 |
vertmod_target = kap140.settingTargetPressureRate.getValue() * 58000; |
|
fix missing namespace
|
367 |
if (kap140.lockPitchMode.getValue() == kap140.pitchModes["VS"] |
368 |
or kap140.lockPitchArm.getValue() == kap140.pitchArmModes["VS"]) |
|
add KAP140 to afcs
|
369 |
vertmod_target = sprintf('%s%4d fpm', |
370 |
utf8.chstr(vertmod_target > 0 ? 9650 : 9660), |
|
371 |
math.abs(math.round(vertmod_target, 10))); |
|
372 |
} |
|
373 | ||
374 |
foreach (var terminal; me.terminals) { |
|
375 |
var se = flightdeck[terminal].display.screenElements; |
|
376 |
if (se['AP-Status-text'].getVisible() and !ap_enabled) { |
|
377 |
if (math.mod(me._blink_count,2)) |
|
378 |
se['AP-Status-text'] |
|
379 |
.setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX) |
|
380 |
.setColorFill(flightdeck[terminal].display.colors.yellow) |
|
381 |
.setColor(flightdeck[terminal].display.colors.black); |
|
382 |
else |
|
383 |
se['AP-Status-text'] |
|
384 |
.setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX) |
|
385 |
.setColorFill(flightdeck[terminal].display.colors.black) |
|
386 |
.setColor(flightdeck[terminal].display.colors.yellow); |
|
387 |
me._blink_count += 1; |
|
388 |
if (me._blink_count == 5) { |
|
389 |
se['AP-Status-text'] |
|
390 |
.setColor(flightdeck[terminal].display.colors.green) |
|
391 |
.setVisible(0); |
|
392 |
me._blink_count = 0; |
|
393 |
} |
|
394 |
return; |
|
395 |
} |
|
396 |
else { |
|
397 |
se['AP-Status-text'].setVisible(ap_enabled); |
|
398 |
me._blink_count = 0; |
|
399 |
se['LATMOD-Active-text'].setVisible(ap_enabled).setText(latmod); |
|
400 |
se['LATMOD-Armed-text'].setVisible(ap_enabled).setText(latmod_armed); |
|
401 |
se['VERMOD-Active-text'].setVisible(ap_enabled).setText(vertmod); |
|
402 |
se['VERMOD-Reference-text'].setVisible(ap_enabled).setText(vertmod_target); |
|
403 |
se['VERMOD-Armed-text'].setVisible(ap_enabled).setText(vertmod_armed); |
|
404 |
} |
|
405 |
} |
|
406 |
}, |
|
407 |
L: [ |
|
408 |
func { kap140.apButton(); }, |
|
409 |
func, |
|
410 |
func { kap140.navButton(); }, |
|
411 |
func { kap140.altButton(); }, |
|
412 |
func, |
|
413 |
func, |
|
414 |
], |
|
415 |
R: [ |
|
416 |
func, |
|
417 |
func { kap140.hdgButton(); }, |
|
418 |
func { kap140.aprButton(); }, |
|
419 |
func, |
|
420 |
func { kap140.upButton(); }, |
|
421 |
func { kap140.downButton(); } |
|
422 |
], |
|
423 |
}, |
|
adds AFCS
|
424 |
} |
add vim zip-markers
|
425 |
# }}} |
adds AFCS
|
426 |
}; |