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