Added some init params to enable the new --parkpos=AVAILABLE option for
[fg:toms-fgdata.git] / Aircraft / f16 / f16-set.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4
5  <sim>
6   <description>General Dynamics F-16 (3d cockpit)</description>
7   <author>Erik Hofman, Pensacola (skin textures), Martin "Pegasus" Schmitt (panel textures)</author>
8   <status>production</status>
9  
10   <flight-model>jsb</flight-model>
11   <aero>f16</aero>
12
13   <startup>
14    <splash-texture>Aircraft/f16/f16-splash.rgb</splash-texture>
15   </startup>
16
17   <!-- enable "parkpos=AVAILABLE" option for the F-16 -->
18   <dimensions>
19    <radius-m type="double">10.0</radius-m>
20    <parkpos-offset-m type="double">0.0</parkpos-offset-m>
21   </dimensions>
22   <aircraft-class type="string">mil-fighter</aircraft-class>
23   <aircraft-operator></aircraft-operator>
24   <aircraft-data>
25    <path>/sim/dimensions/radius-m</path>
26    <path>/sim/dimensions/parkpos-offset-m</path>
27    <path>/sim/aircraft-class</path>
28    <path>/sim/aircraft-operator</path>
29   </aircraft-data>
30
31   <submodels>
32    <serviceable type="bool">1</serviceable>
33    <path>Aircraft/f16/f16-submodels.xml</path>
34   </submodels>
35   
36   <sound>
37    <path>Aircraft/f16/f16-sound.xml</path>
38   </sound>
39
40   <virtual-cockpit archive="y">true</virtual-cockpit>
41   <panel>
42    <visibility archive="y">false</visibility>
43   </panel>
44   <panel_2>
45    <visibility>false</visibility>
46   </panel_2>
47
48   <hud>
49    <path n="1">Aircraft/f16/Models/Cockpit/hud.xml</path>
50    <visibility n="1">true</visibility>
51    <palette>
52     <color n="0">
53      <alpha type="float">0.85</alpha>
54      <antialiased type="bool">true</antialiased>
55      <brightness type="float">0.85</brightness>
56      <transparent type="bool">true</transparent>
57      <red type="float">0.38</red>
58      <green type="float">1.0</green>
59      <blue type="float">0.22</blue>
60     </color>
61     <color n="1">
62      <alpha type="float">0.85</alpha>
63      <antialiased type="bool">true</antialiased>
64      <brightness type="float">0.85</brightness>
65      <transparent type="bool">true</transparent>
66      <red type="float">1.0</red>
67      <green type="float">0.2</green>
68      <blue type="float">0.0</blue>
69     </color>
70    </palette>
71    <clipping>
72     <left type="double">-70</left>
73     <right type="double">70</right>
74     <top type="double">33</top><!-- 20 -->
75     <bottom type="double">-88</bottom><!-- -102 -->
76    </clipping>
77   </hud>
78
79   <instrumentation>
80    <path>Aircraft/f16/Systems/instrumentation.xml</path>
81   </instrumentation>
82
83   <model>
84    <path archive="y">Aircraft/f16/Models/f16.xml</path>
85    <f16>
86     
87     <controls>
88      <navigation>
89      
90       <!-- INSTRUMENT MODE PANEL -->
91       <instrument-mode-panel>
92        <mode>
93         <rotary-switch-knob type="int">0</rotary-switch-knob>
94        </mode>
95        <hdg>
96         <!-- if true than knob is pushed and compass can be calibrated -->
97         <rotary-push-knob type="bool">false</rotary-push-knob>
98        </hdg>    
99       </instrument-mode-panel>
100
101      </navigation>
102     </controls>
103    
104     <instrumentation>
105     <vhf>
106      <selector type="int">0</selector>               
107      <mode type="int">0</mode>                       
108      <selected-preset type="int">1</selected-preset>
109      <load-state type="int">0</load-state>
110      <presets>
111       <preset n="1" type="float">0</preset>
112       <preset n="2" type="float">0</preset>
113       <preset n="3" type="float">0</preset>
114       <preset n="4" type="float">0</preset>
115       <preset n="5" type="float">0</preset>
116       <preset n="6" type="float">0</preset>
117       <preset n="7" type="float">0</preset>
118       <preset n="8" type="float">0</preset>
119       <preset n="9" type="float">0</preset>
120       <preset n="10" type="float">0</preset>
121       <preset n="11" type="float">0</preset>
122       <preset n="12" type="float">0</preset>
123       <preset n="13" type="float">0</preset>
124       <preset n="14" type="float">0</preset>
125       <preset n="15" type="float">0</preset>
126       <preset n="16" type="float">0</preset>
127       <preset n="17" type="float">0</preset>
128       <preset n="18" type="float">0</preset>
129       <preset n="19" type="float">0</preset>
130       <preset n="20" type="float">0</preset>
131      </presets>
132 <!--
133      <frequencies>
134       <alt-selected-mhz-x10 type="int">0</alt-selected-mhz-x10>
135       <alt-selected-mhz-x1 type="int">0</alt-selected-mhz-x1>
136       <alt-selected-mhz-x01 type="int">0</alt-selected-mhz-x01>
137       <alt-selected-mhz-x0001 type="int">0</alt-selected-mhz-x0001>
138      </frequencies>
139 -->
140     </vhf>
141    </instrumentation>
142
143    <smoke>
144     <color>
145      <red>1.0</red>
146      <green>1.0</green>
147      <blue>1.0</blue>
148     </color>
149    </smoke>
150   </f16>
151
152    <livery>
153     <file type="string"/>
154     <actype type="string">F-16C-40</actype>
155     <name type="string">USAF 89-2029/AV 510FS</name>
156     <owner type="string">USAF</owner>
157    </livery>
158    <pushback>
159     <kp type="double">100</kp>
160     <ki type="double">25</ki>
161     <kd type="double">0</kd>
162     <position-norm type="double">0</position-norm>
163    </pushback>
164   </model>
165
166   <chase-distance-m type="double" archive="y">-35.0</chase-distance-m>
167
168 <!-- original settings
169   <view>
170    <internal archive="y">true</internal>
171    <config>
172      <pitch-offset-deg>-10.0</pitch-offset-deg>
173      <x-offset-m archive="y">0.0</x-offset-m>
174      <y-offset-m archive="y">0.93</y-offset-m>
175      <z-offset-m archive="y">-4.15</z-offset-m>
176      <default-field-of-view-deg>55</default-field-of-view-deg>
177    </config>
178   </view>
179 -->
180
181   <view>
182    <internal archive="y">true</internal>
183    <config>
184      <pitch-offset-deg>-5</pitch-offset-deg>
185      <x-offset-m archive="y">0</x-offset-m>
186      <y-offset-m archive="y">0.94</y-offset-m>
187      <z-offset-m archive="y">-3.94</z-offset-m>
188      <default-field-of-view-deg>55</default-field-of-view-deg>
189    </config>
190   </view>
191
192   <rendering>
193    <redout>
194     <parameters>
195      <blackout-complete-g>9.0</blackout-complete-g>
196      <blackout-onset-g>7.5</blackout-onset-g>
197     </parameters>
198    </redout>
199   </rendering>
200
201   <menubar>
202    <default>
203     <menu n="100">
204      <label>F-16</label>
205      <enabled type="bool">true</enabled>
206      <item>
207       <label>Select Livery</label>
208       <binding>
209        <command>nasal</command>
210        <script>
211         aircraft.livery.dialog.toggle();
212        </script>
213       </binding>
214      </item>
215     </menu>
216     <menu n="5">
217      <item n="10">
218       <label>Pushback</label>
219       <enabled type="bool">true</enabled>
220       <name>pushback</name>
221       <binding>
222        <command>dialog-show</command>
223        <dialog-name>pushback</dialog-name>
224       </binding>
225      </item>
226     </menu>
227    </default>
228   </menubar>
229
230   <multiplay>
231    <generic>
232     <int n="2" type="int">0</int>    <!-- radar-standby -->
233    </generic>
234   </multiplay>
235
236   <help>
237    <title>General Dynamics F-16</title>
238    <key>
239     <name>Ctrl-b</name>
240     <desc>toggle speed brake</desc>
241    </key>
242    <key>
243     <name>Ctrl-f</name>
244     <desc>trigger flare release</desc>
245    </key>
246    <key>
247     <name>Ctrl-h</name>
248     <desc>toggle arrester hook</desc>
249    </key>
250    <key>
251     <name>C</name>
252     <desc>Toggle canopy</desc>
253    </key>
254    <key>
255     <name>e (lower case 'e')</name>
256     <desc>fire the cannon</desc>
257    </key>
258    <key>
259     <name>Delete</name>
260     <desc>Toggle FBW override</desc>
261    </key>
262    <key>
263     <name>Ctrl-n</name>
264     <desc>Toggles Radar RWS / TWS AUTO Modes</desc>
265    </key>
266    <key>
267     <name>E</name>
268     <desc>Decrease Radar Range</desc>
269    </key>
270    <key>
271     <name>R</name>
272     <desc>Increase Radar Range</desc>
273    </key>
274    <key>
275     <name>q</name>
276     <desc>Toggles Radar Standby Mode</desc>
277    </key>
278    <key>
279     <name>u/U</name>
280     <desc>seat up/down</desc>
281    </key>
282   </help>
283  </sim>
284
285  <input>
286    <keyboard>
287     <key n="6">
288      <name>Ctrl-F</name>
289      <desc>Trigger flare release</desc>
290      <binding>
291       <command>property-toggle</command>
292       <property>/ai/submodels/submodel[0]/flare-release</property>
293       <value type="bool">true</value>
294      </binding>
295      <mod-up>
296       <binding>
297        <command>property-assign</command>
298        <property>/ai/submodels/submodel[0]/flare-release</property>
299        <value type="bool">false</value>
300       </binding>
301      </mod-up>
302     </key>
303     <key n="8">
304      <name>Ctrl-H</name>
305      <desc>Toggle arrester hook</desc>
306      <binding>
307       <command>property-toggle</command>
308       <property>fdm/jsbsim/systems/hook/tailhook-cmd-norm</property>
309      </binding>
310     </key>
311     <key n="14">
312      <name>Ctrl-n</name>
313      <desc>Toggles Radar RWS / TWS AUTO Modes</desc>
314      <binding>
315       <command>nasal</command>
316       <script>radar.radar_mode_toggle()</script>
317      </binding>
318     </key>
319     <key n="69">
320      <name>E</name>
321      <desc>Decrease Radar Range</desc>
322      <binding>
323       <command>nasal</command>
324       <script>radar.radar_range_control(-1);</script>
325      </binding>
326     </key>
327     <key n="67">
328      <name>C</name>
329      <desc>Toggle canopy</desc>
330      <binding>
331       <command>property-toggle</command>
332       <property>/fdm/jsbsim/fcs/canopy-engage</property>
333      </binding>
334     </key>
335     <key n="82">
336      <name>R</name>
337      <desc>Increase Radar Range</desc>
338      <binding>
339       <command>nasal</command>
340       <script>radar.radar_range_control(1);</script>
341      </binding>
342     </key>
343     <key n="101">
344      <name>e</name>
345      <desc>Gun Trigger</desc> 
346      <binding>
347       <command>property-assign</command>
348       <property>controls/armament/trigger</property>
349       <value>true</value>
350      </binding>
351      <mod-up>
352       <binding>
353        <command>property-assign</command>
354        <property>controls/armament/trigger</property>
355        <value>false</value>
356       </binding> 
357      </mod-up>
358     </key>
359     <key n="113">
360      <name>q</name>
361      <desc>Toggle radar standby mode</desc>
362      <binding>
363       <command>property-toggle</command>
364       <property>instrumentation/radar/radar-standby</property>
365      </binding>
366     </key>
367     <key n="127">
368      <name>Delete</name>
369      <desc>FBW override</desc>
370      <binding>
371       <command>property-toggle</command>
372       <property>/fdm/jsbsim/fcs/fbw-override</property>
373      </binding>
374     </key>
375     <key n="85">
376      <name>U</name>
377      <desc>Seat Down</desc>
378      <binding>
379       <command>property-adjust</command>
380       <property>controls/seat/vertical-adjust</property>
381       <step type="double">-0.005</step>
382       <min type="double">0</min>
383       <max type="double">0.12</max>
384       <condition>
385         <equals>
386          <property>sim/current-view/internal</property>
387          <value>true</value>
388         </equals>
389       </condition>
390      </binding>
391      <binding>
392       <condition>
393         <equals>
394          <property>sim/current-view/view-number</property>
395          <value>0</value>
396         </equals>
397       </condition>
398       <command>property-adjust</command>
399        <property>sim/current-view/y-offset-m</property>
400        <step type="double">-0.005</step>
401        <min type="double">0.985</min>
402        <max type="double">1.105</max>
403        <property>sim/current-view/z-offset-m</property>
404        <step type="double">-0.0033</step>
405        <min type="double">-4</min>
406        <max type="double">-3.96</max>
407      </binding>
408     </key>
409     <key n="117">
410      <name>u</name>
411      <desc>Seat Up</desc>
412      <binding>
413       <command>property-adjust</command>
414        <property>controls/seat/vertical-adjust</property>
415         <step type="double">0.005</step>
416         <min type="double">0.</min>
417         <max type="double">0.12</max>
418       <condition>
419        <equals>
420         <property>sim/current-view/internal</property>
421         <value>true</value>
422        </equals>
423       </condition>
424      </binding>
425      <binding>
426       <condition>
427        <equals>
428         <property>sim/current-view/view-number</property>
429         <value>0</value>
430        </equals>
431       </condition>
432       <command>property-adjust</command>
433        <property>sim/current-view/y-offset-m</property>
434        <step type="double">0.005</step>
435        <min type="double">0.985</min>
436        <max type="double">1.105</max>
437        <property>sim/current-view/z-offset-m</property>
438        <step type="double">0.0033</step>
439        <min type="double">-4</min>
440        <max type="double">-3.96</max>
441      </binding>
442     </key>
443    </keyboard>
444   </input>
445  
446  <controls>
447   <fuel>
448    <qty-selector type="int">1</qty-selector>
449    <external-transfer type="bool">true</external-transfer>
450   </fuel>
451   
452   <gear>
453    <brake-parking type="bool">true</brake-parking>
454   </gear>
455
456   <indicators>
457
458   </indicators>
459
460   <lighting>
461    <ext-lighting-panel>
462     <master type="bool">true</master>
463     <anti-collision type="bool">true</anti-collision>
464     <pos-lights-flash type="bool">true</pos-lights-flash>
465     <wing-tail type="int">2</wing-tail>
466     <fuselage type="int">2</fuselage>
467     <form-knob type="double">1</form-knob>
468     <ar-knob type="double">1</ar-knob>
469    </ext-lighting-panel>
470  
471    <lighting-panel>
472     <pri-inst-pnl type="double">0</pri-inst-pnl>
473     <flood-inst-pnl type="double">0</flood-inst-pnl>
474    </lighting-panel>
475   </lighting>
476
477   <seat>
478    <ejection-safety-lever type="bool">true</ejection-safety-lever>
479   </seat>
480
481   <test>
482    <test-panel>
483     <mal-ind-lts type="bool">false</mal-ind-lts>
484    </test-panel>
485   </test>
486  </controls>
487
488  <engines>
489   <engine n="0">
490    <running>true</running>
491   </engine>
492  </engines>
493
494  <consumables>
495   <fuel>
496    <tank n="0">
497     <level-gal_us archive="y">500</level-gal_us>
498    </tank>
499    <tank n="1">
500     <level-gal_us archive="y">500</level-gal_us>
501    </tank>
502    <tank n="2">
503     <level-gal_us archive="y">370</level-gal_us>
504    </tank>
505    <tank n="3">
506     <level-gal_us archive="y">370</level-gal_us>
507    </tank>
508    <tank n="4">
509     <level-gal_us archive="y">300</level-gal_us>
510    </tank>
511   </fuel>
512  </consumables>
513
514  <fdm>
515   <jsbsim>
516    <systems>
517     <hook>
518      <tailhook-cmd-norm type="bool">false</tailhook-cmd-norm>
519     </hook>
520    </systems>
521   </jsbsim>
522  </fdm>
523  
524  <systems>
525   <electrical>
526    <outputs>
527     <adi type="int">24</adi>                            <!-- satisfying /Models/adi.xml -->
528     <rwr type="double">24</rwr>
529    </outputs>
530   </electrical>
531   <refuel>
532    <type>boom</type>
533    <serviceable type="bool">true</serviceable>
534   </refuel>
535  </systems>
536
537  <instrumentation>
538   <radar>
539    <enabled type="bool">true</enabled>
540    <az-field type="double">120</az-field>
541    <range type="double">160</range>
542    <range-selected type="double">40</range-selected>
543    <display-rdr type="bool">true</display-rdr>
544    <radar-standby type="int">0</radar-standby>
545    <mode>
546     <rws type="bool">true</rws>
547     <tws-auto type="bool">false</tws-auto>
548    </mode>
549   </radar>
550   <radar2>
551    <sweep-width-m type="double">0.0844</sweep-width-m>
552    <range-width-m type="double">0.0846</range-width-m>
553    <radius-ppi-display-m type="double">0.0846</radius-ppi-display-m>
554    <hud-eye-dist-m type="double">0.766</hud-eye-dist-m>
555    <hud-radius-m type="double">0.071</hud-radius-m>
556    <hud-vertical-offset-m type="double">-0.025</hud-vertical-offset-m>
557   </radar2>
558   <rwr>
559    <display-lighting-intens type="double">0.4</display-lighting-intens>
560    <symbology-lighting-intens type="double">1</symbology-lighting-intens>
561   </rwr>
562   <ecm>
563    <on-off type="bool">true</on-off>
564   </ecm>
565  </instrumentation>
566
567  <limits>
568   <max-gear-extension-speed>300</max-gear-extension-speed>
569  </limits>
570
571  <nasal>
572   <aar>
573    <file>Aircraft/Generic/aar.nas</file>
574   </aar>
575   
576   <f16>
577    <file>Aircraft/f16/Nasal/f16.nas</file>
578    <file>Aircraft/f16/Nasal/liveries.nas</file>
579    <file>Aircraft/f16/Nasal/tyresmoke.nas</file>
580   </f16>
581
582   <f16_chronograph>  
583    <file>Aircraft/f16/Nasal/chronograph.nas</file>
584   </f16_chronograph>  
585
586   <f16_fuel>
587    <file>Aircraft/f16/Nasal/fuel.nas</file>
588   </f16_fuel>
589
590   <f16_switches>
591    <file>Aircraft/f16/Nasal/switches.nas</file>
592   </f16_switches>
593   
594   <radar>
595    <file>Aircraft/Instruments-3d/radar2/radar2.nas</file>
596   </radar>
597   <radardist>
598    <file>Aircraft/Instruments-3d/radardist/radardist.nas</file>
599   </radardist>
600  </nasal>
601
602 </PropertyList>