zkv1000 / Nasal / afcs.nas /
Newer Older
417 lines | 19.822kb
adds AFCS
Sébastien MARQUE authored on 2020-05-06
1
var APClass = {
2
    new : func {
3
        var m = { parents: [ APClass ] };
4

            
5
        m.system = 'none';
6
        var ap_systems = { # described AP systems to search, if it returns true system is set
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
7
            STEC55X: func contains(stec55x, 'ITAF'),
creates entry point for GFC7...
Sébastien MARQUE authored on 2020-05-16
8
            GFC700: func props.globals.getNode('/autopilot/GFC700/FSM/lateral').getPath(),
add KAP140 to afcs
Sébastien MARQUE authored on 2021-03-24
9
            KAP140: func contains(kap140, 'apButton'),
adds AFCS
Sébastien MARQUE authored on 2020-05-06
10
        };
11
        foreach (var s; sort(keys(ap_systems), func(a,b) cmp(a,b))) {
12
            call(ap_systems[s], [], nil, nil, var errors = []);
13
            if (!size(errors)) {
14
                msg('found autopilot system: ' ~ s);
15
                m.system = s;
16
                break;
17
            }
18
        }
19

            
20
        m.engaged = 0;
21

            
22
        if (! contains(data.timers, 'updateAP')) {
23
            data.timers.updateAP = maketimer(1, m, m.systems[m.system].updateDisplay);
24
            data.timers.updateAP.start();
25
        }
26

            
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
27
        var ap_annun = [
28
            'LATMOD-Armed-text',  'LATMOD-Active-text',
29
            'AP-Status-text',     'YD-Status-text',
30
            'VERMOD-Active-text', 'VERMOD-Reference-text', 'VERMOD-Armed-text'
31
        ];
show AP infos on MFDs if the...
Sébastien MARQUE authored on 2021-03-22
32

            
33
        var terminal_count = { PFD: 0, MFD: 0 };
34
        m.terminals = [];
35
        foreach (var name; keys(flightdeck)) {
36
            terminal_count[flightdeck[name].role] += 1;
37
            if (flightdeck[name].role == 'PFD')
38
                append(m.terminals, name);
39
        }
40

            
41
        if (terminal_count.PFD == 0 and terminal_count.MFD > 0) {
42
            foreach (var name; keys(flightdeck)) {
fix AP visibility on MFD
Sébastien MARQUE authored on 2021-03-28
43
                flightdeck[name].display.loadGroup({show: 'PFD-navbox'});
show AP infos on MFDs if the...
Sébastien MARQUE authored on 2021-03-22
44
                if (flightdeck[name].role == 'MFD') {
45
                    append(m.terminals, name);
46
                    flightdeck[name].display.loadGroup({text: ap_annun});
47
                }
48
            }
49
        }
50

            
51
        foreach (var terminal; m.terminals) {
52
            foreach (var elem; ap_annun) {
53
                var color = (elem == 'LATMOD-Armed-text' or elem == 'VERMOD-Armed-text') ? 'white' : 'green';
54
                flightdeck[terminal].display.screenElements[elem]
55
                    .setColor(flightdeck[terminal].display.colors[color])
56
                    .setVisible(0);
57
            }
58
            foreach (var ap; [ 'AP', 'YD' ])
59
                flightdeck[terminal].display.screenElements[ap ~ '-Status-text']
60
                    .setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX)
61
                    .setColorFill(flightdeck[terminal].display.colors.black)
62
                    .setText(ap);
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
63
        }
64

            
65
        ap_annun = nil;
66
        ap_systems = nil;
show AP infos on MFDs if the...
Sébastien MARQUE authored on 2021-03-22
67
        terminal_count = nil;
delete unused afcs systems
Sébastien MARQUE authored on 2020-05-16
68
        # delete unused systems
69
        foreach (var e; keys(m.systems))
70
            if (e != m.system)
71
                delete(m.systems, e);
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
72

            
adds AFCS
Sébastien MARQUE authored on 2020-05-06
73
        if (contains(m.systems[m.system], 'hook') and typeof(m.systems[m.system].hook) == 'func')
show AP infos on MFDs if the...
Sébastien MARQUE authored on 2021-03-22
74
            m.systems[m.system].hook();
adds AFCS
Sébastien MARQUE authored on 2020-05-06
75

            
76
        return m;
77
    },
78
    softkey: func (side, row, a) {
little fixes
Sébastien MARQUE authored on 2020-05-11
79
        if (a)
adds AFCS
Sébastien MARQUE authored on 2020-05-06
80
            return;
afcs improvements
Sébastien MARQUE authored on 2020-05-17
81
        call(me.systems[me.system][side][row], [], autopilot.parents[0].systems[me.system]);
adds AFCS
Sébastien MARQUE authored on 2020-05-06
82
    },
83
    systems : {
84
        # L: AP FD  NAV ALT VS FLC
85
        # R: YD HDG APR VNV UP DN
86
        none: {
87
            updateDisplay: func,
88
            hook: func,
89
            L: [ func, func, func, func, func, func ],
90
            R: [ func, func, func, func, func, func ],
91
        },
creates entry point for GFC7...
Sébastien MARQUE authored on 2020-05-16
92
        GFC700: {
integration of GFC700 capabi...
Sébastien MARQUE authored on 2020-05-17
93
# Many thanks to the great work on the FG1000
94
            _blink_count: 0,
95
            updateDisplay: func {
improve and fix afcs for mul...
Sébastien MARQUE authored on 2021-03-24
96
                var annunciator = props.globals.getNode('/autopilot/annunciator');
97
                var ap_enabled  = annunciator.getValue('autopilot-enabled');
98

            
99
                var latmod         = annunciator.getValue('lateral-mode');
100
                var latmod_armed   = annunciator.getValue('lateral-mode-armed');
101
                var vertmod        = annunciator.getValue('vertical-mode');
102
                var vertmod_armed  = annunciator.getValue('vertical-mode-armed');
103
                var vertmod_target = annunciator.getValue('vertical-mode-target');
104
                if (vertmod_target != nil) {
105
                    vertmod_target = string.replace(vertmod_target, '+', utf8.chstr(9650));
106
                    vertmod_target = string.replace(vertmod_target, '-', utf8.chstr(9660));
107
                }
show AP infos on MFDs if the...
Sébastien MARQUE authored on 2021-03-22
108
                foreach (var terminal; me.terminals) {
109
                    var se = flightdeck[terminal].display.screenElements;
integration of GFC700 capabi...
Sébastien MARQUE authored on 2020-05-17
110

            
show AP infos on MFDs if the...
Sébastien MARQUE authored on 2021-03-22
111
                    se['LATMOD-Active-text'].setVisible(latmod != nil and ap_enabled).setText(latmod);
112
                    se['LATMOD-Armed-text'].setVisible(latmod_armed != nil and ap_enabled).setText(latmod_armed);
113
                    se['VERMOD-Active-text'].setVisible(vertmod != nil and ap_enabled).setText(vertmod);
114
                    se['VERMOD-Reference-text'].setVisible(vertmod_target != nil and ap_enabled).setText(vertmod_target);
115
                    se['VERMOD-Armed-text'].setVisible(vertmod_armed != nil and ap_enabled).setText(vertmod_armed);
116

            
117
                    if (se['AP-Status-text'].getVisible() and !ap_enabled) {
118
                        if (math.mod(me._blink_count,2))
119
                            se['AP-Status-text']
120
                                .setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX)
121
                                .setColorFill(flightdeck[terminal].display.colors.yellow)
122
                                .setColor(flightdeck[terminal].display.colors.black);
123
                        else
124
                            se['AP-Status-text']
125
                                .setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX)
126
                                .setColorFill(flightdeck[terminal].display.colors.black)
127
                                .setColor(flightdeck[terminal].display.colors.yellow);
128
                        me._blink_count += 1;
129
                        if (me._blink_count == 5) {
130
                            se['AP-Status-text']
131
                                .setColor(flightdeck[terminal].display.colors.green)
132
                                .setVisible(0);
133
                            me._blink_count = 0;
134
                        }
135
                        return;
136
                    }
137
                    else {
138
                        se['AP-Status-text'].setVisible(ap_enabled);
integration of GFC700 capabi...
Sébastien MARQUE authored on 2020-05-17
139
                        me._blink_count = 0;
140
                    }
141
                }
142
            },
143
            hook: func {
144
                me._vertical_mode = globals.props.getNode("/autopilot/annunciator/vertical-mode", 1);
145
                me._pitch_setting = globals.props.getNode("/autopilot/settings/target-pitch-deg", 1);
146
                me._climb_setting = globals.props.getNode("/autopilot/settings/vertical-speed-fpm", 1);
147
                me._speed_setting = globals.props.getNode("/autopilot/settings/target-speed-kt", 1);
148
                me._vertical_mode_button = globals.props.getNode("/autopilot/vertical-mode-button", 1);
149
                me._lateral_mode_button = globals.props.getNode("/autopilot/lateral-mode-button", 1);
150
                me._ap_mode_button = globals.props.getNode("/autopilot/AP-mode-button", 1);
151
                me._ap_enabled = globals.props.getNode("/autopilot/annunciator/autopilot-enabled", 1);;
152
                me._fd_enabled = globals.props.getNode("/autopilot/annunciator/flight-director-enabled", 1);;
153

            
154
            },
155
            sendModeChange: func (value) {
156
                me._vertical_mode_button.setValue(value);
157
                me._lateral_mode_button.setValue(value);
158
                if (value == "AP") {
159
                    me._ap_mode_button.setValue(value);
160
                }
161
            },
162
            handleNoseUpDown : func(value) {
163
                var vertical_mode = me._vertical_mode.getValue();
164

            
165
                if (vertical_mode == "PIT")
166
                    me._pitch_setting.setValue(me._pitch_setting.getValue() + (value * 1));
167

            
168
                if (vertical_mode == "VS") {
169
                    me._climb_setting.setValue(me._climb_setting.getValue() + (value * 100));
170
                    setprop("/autopilot/annunciator/vertical-mode-target",
171
                        sprintf("%+ifpm", me._climb_setting.getValue())
172
                    );
173
                }
174

            
175
                if (vertical_mode == "FLC") {
176
                    me._speed_setting.setValue(me._speed_setting.getValue() - (value * 1));
177
                    setprop("/autopilot/annunciator/vertical-mode-target",
178
                        sprintf("%i kt", me._speed_setting.getValue())
179
                    );
180
                }
181
            },
nothing interesting
Sébastien MARQUE authored on 2020-05-17
182
            L: [
integration of GFC700 capabi...
Sébastien MARQUE authored on 2020-05-17
183
               func { me.sendModeChange('AP');  },
184
               func { me.sendModeChange('FD');  },
fix issue with AP/NAV
Sébastien MARQUE authored on 2020-09-27
185
               func { setprop('/autopilot/settings/nav-mode-source', cdi.getValue('source')); me.sendModeChange('NAV'); },
integration of GFC700 capabi...
Sébastien MARQUE authored on 2020-05-17
186
               func { me.sendModeChange('ALT'); },
187
               func { me.sendModeChange('VS');  },
188
               func { me.sendModeChange('FLC'); },
189
            ],
nothing interesting
Sébastien MARQUE authored on 2020-05-17
190
            R: [
integration of GFC700 capabi...
Sébastien MARQUE authored on 2020-05-17
191
               func { me.sendModeChange('YD');  },
192
               func { me.sendModeChange('HDG'); },
193
               func { me.sendModeChange('APR'); },
194
               func { me.sendModeChange('VNV'); },
195
               func { me.handleNoseUpDown(1);   },
196
               func { me.handleNoseUpDown(-1);  },
197
            ],
creates entry point for GFC7...
Sébastien MARQUE authored on 2020-05-16
198
        },
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
199
        STEC55X: {
code more clear
Sébastien MARQUE authored on 2020-05-16
200
            _aliases: {
201
                hdg:          afcs.getNode('heading-bug-deg'),
202
                alt:          afcs.getNode('selected-alt-ft'),
203
                NAVCourse:    cdi.getNode('course'),
204
                OBSNAVNeedle: cdi.getNode('course-deflection'),
205
            },
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
206
            hook : func {
207
                me.trimTarget = 0;
code more clear
Sébastien MARQUE authored on 2020-05-16
208
                foreach (var a; keys(me._aliases)) stec55x[a].alias(me._aliases[a]);
stec55x integration (suite)
Sébastien MARQUE authored on 2020-05-11
209
                setprop('/it-stec55x/input/ap-master-sw', 1);
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
210
            },
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
211
            updateDisplay: func {
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
212
                if (stec55x.pitchMode != 1) {
213
                    var armed     = '';
214
                    var active    = '';
215
                    var reference = '';
216
                    if (stec55x.ALT_annun.getBoolValue()) {
217
                        if (abs(data.alt - afcs.getValue('selected-alt-ft')) < 150) {
218
                            active    = 'ALT';
219
                            reference = sprintf('%5d ft', afcs.getValue('selected-alt-ft'));
220
                            armed     = 'ALTS'
221
                        }
222
                        else {
223
                            active    = 'ALT';
224
                            reference = sprintf('%5d ft', math.round(data.alt, 10));
225
                            armed     = 'ALT';
226
                        }
227
                    }
228
                    elsif (stec55x.VS_annun.getBoolValue()) {
229
                        active    = 'VS';
230
                        reference = sprintf('%s%4d fpm',
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
231
                                        utf8.chstr(stec55x.vs.getValue() > 0 ? 9650 : 9660),
232
                                        math.abs(math.round(stec55x.vs.getValue(), 10)));
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
233
                    }
234
                    elsif (stec55x.GSArmed.getBoolValue()) {
235
                        armed  = 'VPATH';
236
                        active = 'GS';
237
                    }
238
# TODO: ask Octal450 which prop or variable can be used here
239
#                    elsif (stec55x.???) {
240
#                        armed  = 'PIT';
241
#                        active = 'ALT';
242
#                        reference = sprintf("%d°", autopilot.systems.STEC55X.trim);
243
#                    }
improve and fix afcs for mul...
Sébastien MARQUE authored on 2021-03-24
244
                }
245

            
246
                foreach (var terminal; me.terminals) {
247
                    var se = flightdeck[me.terminal].display.screenElements;
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
248
                    se['VERMOD-Active-text'].setVisible(size(active)).setText(active);
249
                    se['VERMOD-Armed-text'].setVisible(size(armed)).setText(armed);
250
                    se['VERMOD-Reference-text'].setVisible(size(reference)).setText(reference);
improve and fix afcs for mul...
Sébastien MARQUE authored on 2021-03-24
251
                    se['AP-Status-text'].setVisible(stec55x.rollMode  != -1 or stec55x.pitchMode != -1);
252
                    se['YD-Status-text'].setVisible(stec55x.yaw.getValue() != -1);
253
                    if (stec55x.rollMode  != -1) {
254
                        se['LATMOD-Active-text'].setVisible(1).setText('ROL');
255
                        var armed = '';
256
                        foreach (var m; [ 'NAV', 'CNAV', 'REV', 'CREV' ])
257
                            if (stec55x[m]) armed = m;
258
                        if (stec55x.roll.getValue() == 0) armed = 'HDG';
259
                        elsif (stec55x.roll.getValue() == 2) armed = 'GPS';
260
                        elsif (stec55x.APR_annun.getValue()) armed = 'APR';
261
                        se['LATMOD-Armed-text']
262
                            .setVisible(size(armed))
263
                            .setText(armed);
264
                    }
265
                    else {
266
                        se['LATMOD-Active-text'].setVisible(0);
267
                        se['LATMOD-Armed-text'].setVisible(0);
268
                    }
autopilot status with separa...
Sébastien MARQUE authored on 2020-05-08
269
                }
improve and fix afcs for mul...
Sébastien MARQUE authored on 2021-03-24
270

            
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
271
            },
272
            L: [
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
273
                func,
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
274
                func {
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
275
#                    var apfd_master_sw = '/it-stec55x/input/apfd-master-sw';
276
#                    setprop(apfd_master_sw, !getprop(apfd_master_sw));
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
277
                },
278
                func {
add STEC55X GPS roll mode
Sébastien MARQUE authored on 2020-05-11
279
                    var _roll = stec55x.roll.getValue();
280
                    if (_roll == 1 or _roll == 2 or _roll == 4)
281
                        stec55x.roll.setValue(-1);
282
                    else {
283
                        stec55x.roll.setValue(1);
284
                        call(stec55x.button.NAV, [], nil, stec55x);
285
                    }
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
286
                },
287
                func {
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
288
#                    call(stec55x.button.ALT, [], nil, stec55x);
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
289
                },
290
                func {
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
291
#                    stec55x.vs.setValue(math.round(data.vsi, 100));
292
#                    call(stec55x.button.VS, [], nil, stec55x);
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
293
                },
294
                func,
295
            ],
296
            R: [
297
                func {
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
298
#                    var yaw_dumper_sw = '/it-stec55x/input/yaw-damper-sw';
299
#                    setprop(yaw_dumper_sw, !getprop(yaw_dumper_sw));
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
300
                },
301
                func {
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
302
                    if (stec55x.roll.getValue() == 0)
303
                        stec55x.roll.setValue(-1);
304
                    else
305
                        call(stec55x.button.HDG, [], nil, stec55x);
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
306
                },
307
                func {
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
308
#                    call(stec55x.button.APR, [], nil, stec55x);
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
309
                },
310
                func,
311
                func { # UP (trim)
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
312
#                    if (autopilot.systems.STEC55X.trimTarget > -15)
313
#                        autopilot.systems.STEC55X.trimTarget -= 1;
314
#                    fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value: -1});
315
#                    fgcommand('property-assign', {property: '/it-stec55x/input/man-trim', value:  0});
autopilot S-TEC 55X integrat...
Sébastien MARQUE authored on 2020-05-06
316
                },
317
                func { # DN (trim)
only HDG roll mode is availa...
Sébastien MARQUE authored on 2020-05-11
318
#                    if (autopilot.systems.STEC55X.trimTarget < 20)
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...
Sébastien MARQUE authored on 2020-05-06
322
                },
323
            ],
add KAP140 to afcs
Sébastien MARQUE authored on 2021-03-24
324
        },
325
        KAP140: {
326
            _blink_count: 0,
327
            updateDisplay: func {
328
                var latmod = latmod_armed = vertmod = vertmod_armed = "";
329
                var vertmod_target = 0;
fix syntax error
Sébastien MARQUE authored on 2021-03-24
330
                var ap_enabled = kap140.lockRollMode.getValue() != kap140.rollModes["OFF"]
331
                              or kap140.lockPitchMode.getValue() != kap140.pitchModes["OFF"];
add KAP140 to afcs
Sébastien MARQUE authored on 2021-03-24
332

            
333
                if (ap_enabled) {
334
                    foreach (var mode; keys(kap140.rollModes))
335
                        if (kap140.lockRollMode.getValue() == kap140.rollModes[mode]) {
336
                            latmod = mode;
337
                            break;
338
                        }
339

            
340
                    foreach (var mode; keys(kap140.rollArmModes))
341
                        if (kap140.lockRollArm.getValue() == kap140.rollArmModes[mode]) {
342
                            latmod_armed = mode;
343
                            break;
344
                        }
345

            
346
                    foreach (var mode; keys(kap140.pitchModes))
347
                        if (kap140.lockPitchMode.getValue() == kap140.pitchModes[mode]) {
348
                            vertmod = mode;
349
                            break;
350
                        }
351

            
352
                    foreach (var mode; keys(kap140.pitchArmModes))
353
                        if (kap140.lockPitchArm.getValue() == kap140.pitchArmModes[mode]) {
354
                            vertmod_armed = mode;
355
                            break;
356
                        }
357

            
358
                    vertmod_target = kap140.settingTargetPressureRate.getValue() * 58000;
fix missing namespace
Sébastien MARQUE authored on 2021-03-28
359
                    if (kap140.lockPitchMode.getValue() == kap140.pitchModes["VS"]
360
                    or kap140.lockPitchArm.getValue() == kap140.pitchArmModes["VS"])
add KAP140 to afcs
Sébastien MARQUE authored on 2021-03-24
361
                        vertmod_target = sprintf('%s%4d fpm',
362
                                utf8.chstr(vertmod_target > 0 ? 9650 : 9660),
363
                                math.abs(math.round(vertmod_target, 10)));
364
                }
365

            
366
                foreach (var terminal; me.terminals) {
367
                    var se = flightdeck[terminal].display.screenElements;
368
                    if (se['AP-Status-text'].getVisible() and !ap_enabled) {
369
                        if (math.mod(me._blink_count,2))
370
                            se['AP-Status-text']
371
                                .setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX)
372
                                .setColorFill(flightdeck[terminal].display.colors.yellow)
373
                                .setColor(flightdeck[terminal].display.colors.black);
374
                        else
375
                            se['AP-Status-text']
376
                                .setDrawMode(canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX)
377
                                .setColorFill(flightdeck[terminal].display.colors.black)
378
                                .setColor(flightdeck[terminal].display.colors.yellow);
379
                        me._blink_count += 1;
380
                        if (me._blink_count == 5) {
381
                            se['AP-Status-text']
382
                                .setColor(flightdeck[terminal].display.colors.green)
383
                                .setVisible(0);
384
                            me._blink_count = 0;
385
                        }
386
                        return;
387
                    }
388
                    else {
389
                        se['AP-Status-text'].setVisible(ap_enabled);
390
                        me._blink_count = 0;
391
                        se['LATMOD-Active-text'].setVisible(ap_enabled).setText(latmod);
392
                        se['LATMOD-Armed-text'].setVisible(ap_enabled).setText(latmod_armed);
393
                        se['VERMOD-Active-text'].setVisible(ap_enabled).setText(vertmod);
394
                        se['VERMOD-Reference-text'].setVisible(ap_enabled).setText(vertmod_target);
395
                        se['VERMOD-Armed-text'].setVisible(ap_enabled).setText(vertmod_armed);
396
                    }
397
                }
398
            },
399
            L: [
400
                func { kap140.apButton(); },
401
                func,
402
                func { kap140.navButton(); },
403
                func { kap140.altButton(); },
404
                func,
405
                func,
406
            ],
407
            R: [
408
                func,
409
                func { kap140.hdgButton(); },
410
                func { kap140.aprButton(); },
411
                func,
412
                func { kap140.upButton(); },
413
                func { kap140.downButton(); }
414
            ],
415
        },
adds AFCS
Sébastien MARQUE authored on 2020-05-06
416
    }
417
};