-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrealsimgear.lua
275 lines (273 loc) · 14.3 KB
/
realsimgear.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
devices =
{
-- G1000: Pilot PFD
{
device = "/dev/ttyACM0",
mapping =
{
["ENC_NAV_VOL_DN"] = "sim/GPS/g1000n1_nvol_dn",
["ENC_NAV_VOL_UP"] = "sim/GPS/g1000n1_nvol_up",
["ENC_COM_VOL_DN"] = "sim/GPS/g1000n1_cvol_dn",
["ENC_COM_VOL_UP"] = "sim/GPS/g1000n1_cvol_up",
["BTN_NAV_VOL"] = "sim/GPS/g1000n1_nvol",
["BTN_NAV_FF"] = "sim/GPS/g1000n1_nav_ff",
["ENC_NAV_INNER_UP"] = "sim/GPS/g1000n1_nav_inner_up",
["ENC_NAV_INNER_DN"] = "sim/GPS/g1000n1_nav_inner_down",
["ENC_NAV_OUTER_UP"] = "sim/GPS/g1000n1_nav_outer_up",
["ENC_NAV_OUTER_DN"] = "sim/GPS/g1000n1_nav_outer_down",
["BTN_NAV_TOG"] = "sim/GPS/g1000n1_nav12",
["ENC_HDG_UP"] = "sim/GPS/g1000n1_hdg_up",
["ENC_HDG_DN"] = "sim/GPS/g1000n1_hdg_down",
["BTN_HDG_SYNC"] = "sim/GPS/g1000n1_hdg_sync",
["BTN_AP"] = "sim/GPS/g1000n1_ap",
["BTN_FD"] = "sim/GPS/g1000n1_fd",
["BTN_HDG"] = "sim/GPS/g1000n1_hdg",
["BTN_ALT"] = "sim/GPS/g1000n1_alt",
["BTN_NAV"] = "sim/GPS/g1000n1_nav",
["BTN_VNAV"] = "sim/GPS/g1000n1_vnv",
["BTN_APR"] = "sim/GPS/g1000n1_apr",
["BTN_BC"] = "sim/GPS/g1000n1_bc",
["BTN_VS"] = "sim/GPS/g1000n1_vs",
["BTN_NOSE_UP"] = "sim/GPS/g1000n1_nose_up",
["BTN_FLC"] = "sim/GPS/g1000n1_flc",
["BTN_NOSE_DN"] = "sim/GPS/g1000n1_nose_down",
["ENC_ALT_OUTER_UP"] = "sim/GPS/g1000n1_alt_outer_up",
["ENC_ALT_OUTER_DN"] = "sim/GPS/g1000n1_alt_outer_down",
["ENC_ALT_INNER_UP"] = "sim/GPS/g1000n1_alt_inner_up",
["ENC_ALT_INNER_DN"] = "sim/GPS/g1000n1_alt_inner_down",
["BTN_ALT_SEL"] = "sim/autopilot/altitude_sync",
["BTN_SOFT_1"] = "sim/GPS/g1000n1_softkey1",
["BTN_SOFT_2"] = "sim/GPS/g1000n1_softkey2",
["BTN_SOFT_3"] = "sim/GPS/g1000n1_softkey3",
["BTN_SOFT_4"] = "sim/GPS/g1000n1_softkey4",
["BTN_SOFT_5"] = "sim/GPS/g1000n1_softkey5",
["BTN_SOFT_6"] = "sim/GPS/g1000n1_softkey6",
["BTN_SOFT_7"] = "sim/GPS/g1000n1_softkey7",
["BTN_SOFT_8"] = "sim/GPS/g1000n1_softkey8",
["BTN_SOFT_9"] = "sim/GPS/g1000n1_softkey9",
["BTN_SOFT_10"] = "sim/GPS/g1000n1_softkey10",
["BTN_SOFT_11"] = "sim/GPS/g1000n1_softkey11",
["BTN_SOFT_12"] = "sim/GPS/g1000n1_softkey12",
["BTN_COM_VOL"] = "sim/GPS/g1000n1_cvol",
["BTN_COM_FF"] = "sim/GPS/g1000n1_com_ff",
["ENC_COM_OUTER_UP"] = "sim/GPS/g1000n1_com_outer_up",
["ENC_COM_OUTER_DN"] = "sim/GPS/g1000n1_com_outer_down",
["ENC_COM_INNER_UP"] = "sim/GPS/g1000n1_com_inner_up",
["ENC_COM_INNER_DN"] = "sim/GPS/g1000n1_com_inner_down",
["BTN_COM_TOG"] = "sim/GPS/g1000n1_com12",
["ENC_BARO_UP"] = "sim/GPS/g1000n1_baro_up",
["ENC_BARO_DN"] = "sim/GPS/g1000n1_baro_down",
["ENC_CRS_UP"] = "sim/GPS/g1000n1_crs_up",
["ENC_CRS_DN"] = "sim/GPS/g1000n1_crs_down",
["BTN_CRS_SYNC"] = "sim/GPS/g1000n1_crs_sync",
["ENC_RANGE_UP"] = "sim/GPS/g1000n1_range_up",
["ENC_RANGE_DN"] = "sim/GPS/g1000n1_range_down",
["BTN_PAN_DN"] = "sim/GPS/g1000n1_pan_down",
["BTN_PAN_RIGHT"] = "sim/GPS/g1000n1_pan_right",
["BTN_PAN_UP"] = "sim/GPS/g1000n1_pan_up",
["BTN_PAN_LEFT"] = "sim/GPS/g1000n1_pan_left",
["BTN_PAN_SYNC"] = "sim/GPS/g1000n1_pan_push",
["ENC_FMS_OUTER_UP"] = "sim/GPS/g1000n1_fms_outer_up",
["ENC_FMS_OUTER_DN"] = "sim/GPS/g1000n1_fms_outer_down",
["ENC_FMS_INNER_UP"] = "sim/GPS/g1000n1_fms_inner_up",
["ENC_FMS_INNER_DN"] = "sim/GPS/g1000n1_fms_inner_down",
["BTN_FMS"] = "sim/GPS/g1000n1_cursor",
["BTN_DIRECT"] = "sim/GPS/g1000n1_direct",
["BTN_FPL"] = "sim/GPS/g1000n1_fpl",
["BTN_CLR"] = "sim/GPS/g1000n1_clr",
["BTN_MENU"] = "sim/GPS/g1000n1_menu",
["BTN_ENT"] = "sim/GPS/g1000n1_ent",
["BTN_PROC"] = "sim/GPS/g1000n1_proc",
["BTN_DME"] = "sim/audio_panel/monitor_audio_dme",
["BTN_MKR"] = "sim/audio_panel/monitor_audio_mkr",
["BTN_COM1"] = "sim/audio_panel/monitor_audio_com1",
["BTN_MIC2"] = "sim/audio_panel/transmit_audio_com2",
["BTN_COM2"] = "sim/audio_panel/monitor_audio_com2",
["BTN_MIC1"] = "sim/audio_panel/transmit_audio_com1",
["BTN_NAV1"] = "sim/audio_panel/monitor_audio_nav1",
["BTN_NAV2"] = "sim/audio_panel/monitor_audio_nav2",
["BTN_ADF"] = "sim/audio_panel/monitor_audio_adf1",
["BTN_REVERSION"] = "sim/GPS/G1000_display_reversion",
}
},
-- G1000: Co-Pilot PFD
{
device = nil,
mapping =
{
["ENC_NAV_VOL_DN"] = "sim/GPS/g1000n2_nvol_dn",
["ENC_NAV_VOL_UP"] = "sim/GPS/g1000n2_nvol_up",
["ENC_COM_VOL_DN"] = "sim/GPS/g1000n2_cvol_dn",
["ENC_COM_VOL_UP"] = "sim/GPS/g1000n2_cvol_up",
["BTN_NAV_VOL"] = "sim/GPS/g1000n2_nvol",
["BTN_NAV_FF"] = "sim/GPS/g1000n2_nav_ff",
["ENC_NAV_INNER_UP"] = "sim/GPS/g1000n2_nav_inner_up",
["ENC_NAV_INNER_DN"] = "sim/GPS/g1000n2_nav_inner_down",
["ENC_NAV_OUTER_UP"] = "sim/GPS/g1000n2_nav_outer_up",
["ENC_NAV_OUTER_DN"] = "sim/GPS/g1000n2_nav_outer_down",
["BTN_NAV_TOG"] = "sim/GPS/g1000n2_nav12",
["ENC_HDG_UP"] = "sim/GPS/g1000n2_hdg_up",
["ENC_HDG_DN"] = "sim/GPS/g1000n2_hdg_down",
["BTN_HDG_SYNC"] = "sim/GPS/g1000n2_hdg_sync",
["BTN_AP"] = "sim/GPS/g1000n2_ap",
["BTN_FD"] = "sim/GPS/g1000n2_fd",
["BTN_HDG"] = "sim/GPS/g1000n2_hdg",
["BTN_ALT"] = "sim/GPS/g1000n2_alt",
["BTN_NAV"] = "sim/GPS/g1000n2_nav",
["BTN_VNAV"] = "sim/GPS/g1000n2_vnv",
["BTN_APR"] = "sim/GPS/g1000n2_apr",
["BTN_BC"] = "sim/GPS/g1000n2_bc",
["BTN_VS"] = "sim/GPS/g1000n2_vs",
["BTN_NOSE_UP"] = "sim/GPS/g1000n2_nose_up",
["BTN_FLC"] = "sim/GPS/g1000n2_flc",
["BTN_NOSE_DN"] = "sim/GPS/g1000n2_nose_down",
["ENC_ALT_OUTER_UP"] = "sim/GPS/g1000n2_alt_outer_up",
["ENC_ALT_OUTER_DN"] = "sim/GPS/g1000n2_alt_outer_down",
["ENC_ALT_INNER_UP"] = "sim/GPS/g1000n2_alt_inner_up",
["ENC_ALT_INNER_DN"] = "sim/GPS/g1000n2_alt_inner_down",
["BTN_ALT_SEL"] = "sim/autopilot/altitude_sync",
["BTN_SOFT_1"] = "sim/GPS/g1000n2_softkey1",
["BTN_SOFT_2"] = "sim/GPS/g1000n2_softkey2",
["BTN_SOFT_3"] = "sim/GPS/g1000n2_softkey3",
["BTN_SOFT_4"] = "sim/GPS/g1000n2_softkey4",
["BTN_SOFT_5"] = "sim/GPS/g1000n2_softkey5",
["BTN_SOFT_6"] = "sim/GPS/g1000n2_softkey6",
["BTN_SOFT_7"] = "sim/GPS/g1000n2_softkey7",
["BTN_SOFT_8"] = "sim/GPS/g1000n2_softkey8",
["BTN_SOFT_9"] = "sim/GPS/g1000n2_softkey9",
["BTN_SOFT_10"] = "sim/GPS/g1000n2_softkey10",
["BTN_SOFT_11"] = "sim/GPS/g1000n2_softkey11",
["BTN_SOFT_12"] = "sim/GPS/g1000n2_softkey12",
["BTN_COM_VOL"] = "sim/GPS/g1000n2_cvol",
["BTN_COM_FF"] = "sim/GPS/g1000n2_com_ff",
["ENC_COM_OUTER_UP"] = "sim/GPS/g1000n2_com_outer_up",
["ENC_COM_OUTER_DN"] = "sim/GPS/g1000n2_com_outer_down",
["ENC_COM_INNER_UP"] = "sim/GPS/g1000n2_com_inner_up",
["ENC_COM_INNER_DN"] = "sim/GPS/g1000n2_com_inner_down",
["BTN_COM_TOG"] = "sim/GPS/g1000n2_com12",
["ENC_BARO_UP"] = "sim/GPS/g1000n2_baro_up",
["ENC_BARO_DN"] = "sim/GPS/g1000n2_baro_down",
["ENC_CRS_UP"] = "sim/GPS/g1000n2_crs_up",
["ENC_CRS_DN"] = "sim/GPS/g1000n2_crs_down",
["BTN_CRS_SYNC"] = "sim/GPS/g1000n2_crs_sync",
["ENC_RANGE_UP"] = "sim/GPS/g1000n2_range_up",
["ENC_RANGE_DN"] = "sim/GPS/g1000n2_range_down",
["BTN_PAN_DN"] = "sim/GPS/g1000n2_pan_down",
["BTN_PAN_RIGHT"] = "sim/GPS/g1000n2_pan_right",
["BTN_PAN_UP"] = "sim/GPS/g1000n2_pan_up",
["BTN_PAN_LEFT"] = "sim/GPS/g1000n2_pan_left",
["BTN_PAN_SYNC"] = "sim/GPS/g1000n2_pan_push",
["ENC_FMS_OUTER_UP"] = "sim/GPS/g1000n2_fms_outer_up",
["ENC_FMS_OUTER_DN"] = "sim/GPS/g1000n2_fms_outer_down",
["ENC_FMS_INNER_UP"] = "sim/GPS/g1000n2_fms_inner_up",
["ENC_FMS_INNER_DN"] = "sim/GPS/g1000n2_fms_inner_down",
["BTN_FMS"] = "sim/GPS/g1000n2_cursor",
["BTN_DIRECT"] = "sim/GPS/g1000n2_direct",
["BTN_FPL"] = "sim/GPS/g1000n2_fpl",
["BTN_CLR"] = "sim/GPS/g1000n2_clr",
["BTN_MENU"] = "sim/GPS/g1000n2_menu",
["BTN_ENT"] = "sim/GPS/g1000n2_ent",
["BTN_PROC"] = "sim/GPS/g1000n2_proc",
["BTN_DME"] = "sim/audio_panel/monitor_audio_dme",
["BTN_MKR"] = "sim/audio_panel/monitor_audio_mkr",
["BTN_COM1"] = "sim/audio_panel/monitor_audio_com1",
["BTN_MIC2"] = "sim/audio_panel/transmit_audio_com2",
["BTN_COM2"] = "sim/audio_panel/monitor_audio_com2",
["BTN_MIC1"] = "sim/audio_panel/transmit_audio_com1",
["BTN_NAV1"] = "sim/audio_panel/monitor_audio_nav1",
["BTN_NAV2"] = "sim/audio_panel/monitor_audio_nav2",
["BTN_ADF"] = "sim/audio_panel/monitor_audio_adf1",
["BTN_REVERSION"] = "sim/GPS/G1000_display_reversion",
}
},
-- G1000: MFD
{
device = nil,
mapping =
{
["ENC_NAV_VOL_DN"] = "sim/GPS/g1000n3_nvol_dn",
["ENC_NAV_VOL_UP"] = "sim/GPS/g1000n3_nvol_up",
["ENC_COM_VOL_DN"] = "sim/GPS/g1000n3_cvol_dn",
["ENC_COM_VOL_UP"] = "sim/GPS/g1000n3_cvol_up",
["BTN_NAV_VOL"] = "sim/GPS/g1000n3_nvol",
["BTN_NAV_FF"] = "sim/GPS/g1000n3_nav_ff",
["ENC_NAV_INNER_UP"] = "sim/GPS/g1000n3_nav_inner_up",
["ENC_NAV_INNER_DN"] = "sim/GPS/g1000n3_nav_inner_down",
["ENC_NAV_OUTER_UP"] = "sim/GPS/g1000n3_nav_outer_up",
["ENC_NAV_OUTER_DN"] = "sim/GPS/g1000n3_nav_outer_down",
["BTN_NAV_TOG"] = "sim/GPS/g1000n3_nav12",
["ENC_HDG_UP"] = "sim/GPS/g1000n3_hdg_up",
["ENC_HDG_DN"] = "sim/GPS/g1000n3_hdg_down",
["BTN_HDG_SYNC"] = "sim/GPS/g1000n3_hdg_sync",
["BTN_AP"] = "sim/GPS/g1000n3_ap",
["BTN_FD"] = "sim/GPS/g1000n3_fd",
["BTN_HDG"] = "sim/GPS/g1000n3_hdg",
["BTN_ALT"] = "sim/GPS/g1000n3_alt",
["BTN_NAV"] = "sim/GPS/g1000n3_nav",
["BTN_VNAV"] = "sim/GPS/g1000n3_vnv",
["BTN_APR"] = "sim/GPS/g1000n3_apr",
["BTN_BC"] = "sim/GPS/g1000n3_bc",
["BTN_VS"] = "sim/GPS/g1000n3_vs",
["BTN_NOSE_UP"] = "sim/GPS/g1000n3_nose_up",
["BTN_FLC"] = "sim/GPS/g1000n3_flc",
["BTN_NOSE_DN"] = "sim/GPS/g1000n3_nose_down",
["ENC_ALT_OUTER_UP"] = "sim/GPS/g1000n3_alt_outer_up",
["ENC_ALT_OUTER_DN"] = "sim/GPS/g1000n3_alt_outer_down",
["ENC_ALT_INNER_UP"] = "sim/GPS/g1000n3_alt_inner_up",
["ENC_ALT_INNER_DN"] = "sim/GPS/g1000n3_alt_inner_down",
["BTN_ALT_SEL"] = "sim/autopilot/altitude_sync",
["BTN_SOFT_1"] = "sim/GPS/g1000n3_softkey1",
["BTN_SOFT_2"] = "sim/GPS/g1000n3_softkey2",
["BTN_SOFT_3"] = "sim/GPS/g1000n3_softkey3",
["BTN_SOFT_4"] = "sim/GPS/g1000n3_softkey4",
["BTN_SOFT_5"] = "sim/GPS/g1000n3_softkey5",
["BTN_SOFT_6"] = "sim/GPS/g1000n3_softkey6",
["BTN_SOFT_7"] = "sim/GPS/g1000n3_softkey7",
["BTN_SOFT_8"] = "sim/GPS/g1000n3_softkey8",
["BTN_SOFT_9"] = "sim/GPS/g1000n3_softkey9",
["BTN_SOFT_10"] = "sim/GPS/g1000n3_softkey10",
["BTN_SOFT_11"] = "sim/GPS/g1000n3_softkey11",
["BTN_SOFT_12"] = "sim/GPS/g1000n3_softkey12",
["BTN_COM_VOL"] = "sim/GPS/g1000n3_cvol",
["BTN_COM_FF"] = "sim/GPS/g1000n3_com_ff",
["ENC_COM_OUTER_UP"] = "sim/GPS/g1000n3_com_outer_up",
["ENC_COM_OUTER_DN"] = "sim/GPS/g1000n3_com_outer_down",
["ENC_COM_INNER_UP"] = "sim/GPS/g1000n3_com_inner_up",
["ENC_COM_INNER_DN"] = "sim/GPS/g1000n3_com_inner_down",
["BTN_COM_TOG"] = "sim/GPS/g1000n3_com12",
["ENC_BARO_UP"] = "sim/GPS/g1000n3_baro_up",
["ENC_BARO_DN"] = "sim/GPS/g1000n3_baro_down",
["ENC_CRS_UP"] = "sim/GPS/g1000n3_crs_up",
["ENC_CRS_DN"] = "sim/GPS/g1000n3_crs_down",
["BTN_CRS_SYNC"] = "sim/GPS/g1000n3_crs_sync",
["ENC_RANGE_UP"] = "sim/GPS/g1000n3_range_up",
["ENC_RANGE_DN"] = "sim/GPS/g1000n3_range_down",
["BTN_PAN_DN"] = "sim/GPS/g1000n3_pan_down",
["BTN_PAN_RIGHT"] = "sim/GPS/g1000n3_pan_right",
["BTN_PAN_UP"] = "sim/GPS/g1000n3_pan_up",
["BTN_PAN_LEFT"] = "sim/GPS/g1000n3_pan_left",
["BTN_PAN_SYNC"] = "sim/GPS/g1000n3_pan_push",
["ENC_FMS_OUTER_UP"] = "sim/GPS/g1000n3_fms_outer_up",
["ENC_FMS_OUTER_DN"] = "sim/GPS/g1000n3_fms_outer_down",
["ENC_FMS_INNER_UP"] = "sim/GPS/g1000n3_fms_inner_up",
["ENC_FMS_INNER_DN"] = "sim/GPS/g1000n3_fms_inner_down",
["BTN_FMS"] = "sim/GPS/g1000n3_cursor",
["BTN_DIRECT"] = "sim/GPS/g1000n3_direct",
["BTN_FPL"] = "sim/GPS/g1000n3_fpl",
["BTN_CLR"] = "sim/GPS/g1000n3_clr",
["BTN_MENU"] = "sim/GPS/g1000n3_menu",
["BTN_ENT"] = "sim/GPS/g1000n3_ent",
["BTN_PROC"] = "sim/GPS/g1000n3_proc",
["BTN_DME"] = "sim/audio_panel/monitor_audio_dme",
["BTN_MKR"] = "sim/audio_panel/monitor_audio_mkr",
["BTN_COM1"] = "sim/audio_panel/monitor_audio_com1",
["BTN_MIC2"] = "sim/audio_panel/transmit_audio_com2",
["BTN_COM2"] = "sim/audio_panel/monitor_audio_com2",
["BTN_MIC1"] = "sim/audio_panel/transmit_audio_com1",
["BTN_NAV1"] = "sim/audio_panel/monitor_audio_nav1",
["BTN_NAV2"] = "sim/audio_panel/monitor_audio_nav2",
["BTN_ADF"] = "sim/audio_panel/monitor_audio_adf1",
["BTN_REVERSION"] = "sim/GPS/G1000_display_reversion",
}
},
}