forked from IskenderWang/787-family
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path787-common.xml
460 lines (433 loc) · 18.1 KB
/
787-common.xml
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
<?xml version="1.0" encoding="UTF-8"?>
<!-- Put anything common between all -sets here -->
<PropertyList>
<instrumentation>
<transponder>
<inputs>
<knob-mode type="int">0</knob-mode>
</inputs>
</transponder>
</instrumentation>
<controls>
<gear>
<tiller-cmd-norm type="double">0</tiller-cmd-norm>
<steering-cmd-norm type="double">0</steering-cmd-norm>
<enable-tiller type="bool">false</enable-tiller>
<brake-parking type="bool">true</brake-parking>
</gear>
<mcp>
<vs-step type="double">500</vs-step>
</mcp>
</controls>
<input>
<keyboard>
<key n="267">
<name>F11</name>
<desc>Pop up autopilot dialog</desc>
<binding>
<command>nasal</command>
<script>
var ap_dialog = gui.Dialog.new("sim/gui/dialogs/ap_dialog/dialog", "Aircraft/787-family/gui/dialogs/it-autoflight-dlg.xml");
ap_dialog.open();
</script>
</binding>
</key>
<key n="127">
<name>Delete</name>
<desc>Toggle thrust reversers</desc>
<binding>
<command>nasal</command>
<script>
reversethrust.togglereverser();
</script>
</binding>
</key>
<key n="101">
<name>e</name>
<desc>Set idle thrust</desc>
<binding>
<command>nasal</command>
<script>
setprop("it-autoflight/input/athr", 0);
setprop("controls/engines/engine[0]/throttle", 0);
setprop("controls/engines/engine[1]/throttle", 0);
</script>
</binding>
</key>
<key n="114">
<name>r</name>
<desc>Cycle throttle at 0% - 25% - 50%</desc>
<binding>
<command>nasal</command>
<script>
setprop("it-autoflight/input/athr", 0);
var throttle_setting = (
getprop("controls/engines/engine[0]/throttle")
+ getprop("controls/engines/engine[1]/throttle")
) / 2;
if (throttle_setting == 0.0) {
setprop("controls/engines/engine[0]/throttle", 0.25);
setprop("controls/engines/engine[1]/throttle", 0.25);
return;
}
if (throttle_setting == 0.25) {
setprop("controls/engines/engine[0]/throttle", 0.5);
setprop("controls/engines/engine[1]/throttle", 0.5);
return;
}
setprop("controls/engines/engine[0]/throttle", 0.0);
setprop("controls/engines/engine[1]/throttle", 0.0);
</script>
</binding>
</key>
<key n="102">
<name>f</name>
<desc>Arm autothrottle and set TO/GA</desc>
<binding>
<command>nasal</command>
<script><![CDATA[
var airspeed = getprop("velocities/airspeed-kt");
if (getprop("gear/gear[1]/wow") or getprop("gear/gear[2]/wow")) {
if (airspeed < 50 and getprop("controls/flight/flaps") > 0)
setprop("it-autoflight/input/toga", 1);
if (airspeed > 80)
setprop("it-autoflight/input/lat", 3);
setprop("controls/flight/speedbrake-lever", 0);
return;
}
# After takeoff
if (getprop("it-autoflight/output/vert") == 7) {
setprop("it-autoflight/input/athr", 0);
setprop("controls/engines/engine[0]/throttle", 1.0);
setprop("controls/engines/engine[1]/throttle", 1.0);
return;
}
# In approach
setprop("it-autoflight/input/toga", 1);
setprop("it-autoflight/input/lat", 1);
]]></script>
</binding>
</key>
<key n="70">
<name>Shift-f</name>
<desc>Disarm A/T, throttle to 100%</desc>
<binding>
<command>nasal</command>
<script>
setprop("it-autoflight/input/athr", 0);
setprop("controls/engines/engine[0]/throttle", 1.0);
setprop("controls/engines/engine[1]/throttle", 1.0);
</script>
</binding>
</key>
<key n="6">
<name>Ctrl-f</name>
<desc>Toggle FBW Override</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-cycle</command>
<property>/controls/fbw/active</property>
<value>0</value>
<value>1</value>
</binding>
</key>
<key n="25">
<name>Ctrl-y</name>
<desc>Toggle Yaw Damper</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>property-cycle</command>
<property>/controls/fbw/yaw-damper</property>
<value>0</value>
<value>1</value>
</binding>
</key>
<key n="119">
<name>w</name>
<desc>Walk forward toward view</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>
walk.walk_about(0.1);
</script>
</binding>
</key>
<key n="2">
<name>Ctrl-b</name>
<desc>Cycle speedbrake setting</desc>
<binding>
<command>nasal</command>
<script><![CDATA[
var lever = "controls/flight/speedbrake-lever";
var auto = "controls/flight/speedbrake-auto";
if (getprop(auto) == 1) {
setprop(lever, 0.0);
setprop(auto, 0);
return;
}
var setting = getprop(lever) + 0.5;
if (setting > 1) {
setting = 0;
}
setprop(lever, setting);
]]></script>
</binding>
</key>
<key n="11">
<name>Ctrl-k</name>
<desc>Arm/disarm ground spoilers</desc>
<binding>
<command>property-toggle</command>
<property>controls/flight/ground-spoilers-armed</property>
</binding>
</key>
<key n="87">
<name>W</name>
<desc>Run forward toward view</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>
walk.walk_about(0.25);
</script>
</binding>
</key>
<key n="115">
<name>s</name>
<desc>Walk backward from view</desc>
<repeatable type="bool">true</repeatable>
<binding>
<command>nasal</command>
<script>
walk.walk_about(-0.1);
</script>
</binding>
</key>
<key n="357">
<name>Up</name>
<repeatable type="bool">true</repeatable>
<mod-alt>
<desc>Tilt View Up</desc>
<binding>
<command>nasal</command>
<script>
setprop("/sim/current-view/pitch-offset-deg", getprop("/sim/current-view/pitch-offset-deg") + 1);
</script>
</binding>
</mod-alt>
</key>
<key n="359">
<name>Down</name>
<repeatable type="bool">true</repeatable>
<mod-alt>
<desc>Tilt View Down</desc>
<binding>
<command>nasal</command>
<script>
setprop("/sim/current-view/pitch-offset-deg", getprop("/sim/current-view/pitch-offset-deg") - 1);
</script>
</binding>
</mod-alt>
</key>
<key n="356">
<name>Left</name>
<repeatable type="bool">true</repeatable>
<mod-alt>
<desc>Pan View Left</desc>
<binding>
<command>nasal</command>
<script>
setprop("/sim/current-view/heading-offset-deg", getprop("/sim/current-view/heading-offset-deg") + 1);
</script>
</binding>
</mod-alt>
</key>
<key n="358">
<name>Right</name>
<repeatable type="bool">true</repeatable>
<mod-alt>
<desc>Pan View Right</desc>
<binding>
<command>nasal</command>
<script>
setprop("/sim/current-view/heading-offset-deg", getprop("/sim/current-view/heading-offset-deg") - 1);
</script>
</binding>
</mod-alt>
</key>
<key n="66">
<name>B</name>
<desc>Toggle parking brake on or off</desc>
<binding>
<command>nasal</command>
<script>b787.toggle_parkingbrakes();</script>
</binding>
</key>
<key n="68">
<name>D</name>
<desc>Autopilot Disconnect</desc>
<binding>
<command>property-assign</command>
<property>it-autoflight/input/ap1</property>
<value>0</value>
</binding>
</key>
</keyboard>
</input>
<sim n="0">
<aircraft-data>
<path>/sim/model/autopush/route/show</path>
<path>/sim/model/autopush/route/show-wingtip</path>
</aircraft-data>
<model>
<autopush include="Systems/autopush-config.xml" />
</model>
<systems>
<autopilot>
<name>IT-AUTOFLIGHT</name>
<path>Aircraft/787-family/Systems/it-autoflight.xml</path>
</autopilot>
<autopilot>
<name>IT-AUTOTHRUST</name>
<path>Aircraft/787-family/Systems/it-autothrust.xml</path>
</autopilot>
<autopilot>
<name>Gear AGL FT</name>
<path>Aircraft/787-family/Systems/gear-agl-ft.xml</path>
</autopilot>
<wingflexer include="Systems/wingflexer-params.xml" />
<autopilot>
<name>wing flexer property rule</name>
<path>Aircraft/Generic/wingflexer.xml</path>
</autopilot>
<autopilot>
<name>Spoilers</name>
<path>Aircraft/787-family/Systems/b787-spoilers.xml</path>
</autopilot>
<autopilot>
<name>VNAV extension</name>
<path>Aircraft/787-family/Systems/vnav-extension.xml</path>
</autopilot>
<autopilot>
<name>Nose wheel steering</name>
<path>Aircraft/787-family/Systems/ground_steering.xml</path>
</autopilot>
<autopilot>
<name>Windscreen cracker at excessive Gs</name>
<path>Aircraft/787-family/Systems/limits.xml</path>
</autopilot>
</systems>
<flight-recorder include="Systems/flight-recorder.xml"></flight-recorder>
</sim>
<fdm>
<jsbsim>
<external_reactions>
<tractor>
<magnitude alias="/sim/model/autopush/force-lbf" />
<x alias="/sim/model/autopush/force-x" />
<y alias="/sim/model/autopush/force-y" />
<z alias="/sim/model/autopush/force-z" />
</tractor>
</external_reactions>
</jsbsim>
</fdm>
<gear>
<gear n="0">
<tyre-smoke type="bool">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
</gear>
<gear n="1">
<tyre-smoke type="bool">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
</gear>
<gear n="2">
<tyre-smoke type="bool">0</tyre-smoke>
<sprayspeed-ms type="double">0</sprayspeed-ms>
<spray-density type="double">0</spray-density>
<caster-angle-deg-damped type="double">0</caster-angle-deg-damped>
</gear>
</gear>
<nasal>
<autopush>
<file>Nasal/Autopush/autopush.nas</file>
</autopush>
<autopush_driver>
<file>Nasal/Autopush/driver.nas</file>
</autopush_driver>
<dynarr>
<file>Nasal/Autopush/dynarr.nas</file>
</dynarr>
<autopush_route>
<file>Nasal/Autopush/route.nas</file>
</autopush_route>
<it_vnav_extension>
<file>Aircraft/787-family/Nasal/vnav-extension.nas</file>
</it_vnav_extension>
</nasal>
<it-autoflight>
<config>
<roll>
<kp-low>0.18</kp-low> <!-- Kp at low speed -->
<kp-high>0.09</kp-high> <!-- Kp at high speed -->
<ti>1.0</ti>
<td>0.0001</td>
</roll>
<pitch>
<kp-low>-0.17</kp-low> <!-- Kp at low speed -->
<kp-high>-0.07</kp-high> <!-- Kp at high speed -->
<ti>0.5</ti>
<td>0.001</td>
</pitch>
<cmd>
<alt>-5</alt>
<flch-accel>1.5</flch-accel>
<roll>1.6</roll>
</cmd>
<autoland>
<pitch-kp>0.0051</pitch-kp>
<yaw-kp>-0.05</yaw-kp>
</autoland>
<rollout>
<roll-kp>-0.1</roll-kp>
<pitch-nose>0.1</pitch-nose>
<pitch-rate>-1.5</pitch-rate>
<yaw-kp>-0.02</yaw-kp>
</rollout>
</config>
<settings>
<accel-ft type="double">1000</accel-ft> <!-- Acceleration AGL when T/O CLB changes to SPD CLV, 0 to disable -->
<auto-bank-limit-calc type="bool">1</auto-bank-limit-calc> <!-- Disable to add a custom auto bank limit schedule -->
<autoland-without-ap type="bool">1</autoland-without-ap> <!-- Engage LAND and FLARE Modes even if the AP is off -->
<autothrottle-max type="double">0.95</autothrottle-max> <!-- Thrust Max Limit Normalized -->
<autothrottle-min type="double">0.02</autothrottle-min> <!-- Thrust Min Limit Normalized -->
<bank-max-deg type="double">30</bank-max-deg> <!-- Maximum Bank Limit -->
<custom-fma type="bool">0</custom-fma> <!-- Call functions when modes change for a custom FMA to be implemented -->
<disable-final type="bool">0</disable-final> <!-- Disable the Final Controllers, for custom FMS integration -->
<fd-starts-on type="bool">0</fd-starts-on> <!-- Enable/Disable Flight Director being on by default -->
<fd-takeoff-offset type="double">0</fd-takeoff-offset> <!-- Adjust the Flight Director Pitch Bar on ground -->
<hdg-hld-separate type="bool">0</hdg-hld-separate> <!-- Separates the HDG HLD mode from the HDG SEL mode -->
<land-enable type="bool">1</land-enable> <!-- Enable/Disable Autoland -->
<land-flap type="double">0.7</land-flap> <!-- Minimum Flap used for Landing -->
<lnav-ft type="double">50</lnav-ft> <!-- AGL when LNAV becomes active if armed -->
<retard-enable type="bool">1</retard-enable> <!-- Enable Thrust Retard -->
<retard-ft type="double">50</retard-ft> <!-- AGL to Thrust Retard -->
<takeoff-hdg-cap type="double">5</takeoff-hdg-cap> <!-- Maximum bank to capture current hdn in T/O mode -->
<toga-spd type="double">160</toga-spd> <!-- V2 + 10kts -->
<use-controls-engines type="bool">1</use-controls-engines> <!-- Use /controls/engines properties -->
<use-controls-flight type="bool">1</use-controls-flight> <!-- Use /controls/flight properties -->
</settings>
</it-autoflight>
<it-vnav>
<settings>
<vnav-ft type="double">400</vnav-ft> <!-- Minimum altitude above runway to make VNAV available -->
<steps type="bool">false</steps> <!-- Wether VNAV should make step climbs and descents -->
<controlled-descent type="bool">false</controlled-descent> <!-- `false` = FREE descent, `true` = CTLD descent-->
<auto-descend type="bool">false</auto-descend> <!-- `false` = Press DESCEND button do descend, `true` = Let VNAV descend automatically -->
</settings>
</it-vnav>
</PropertyList>