Update and add flashlight
[fgdata-textures-ng:fgdata-textures-ng.git] / Aircraft / Hurricane / hurricaneIIb-set.xml
1 <?xml version="1.0"?>
2 <!--
3
4 ************************************************************************
5
6 Hurricane IIb simulation config. This files ties together all the components
7
8 used by FGFS to represent the aircraft. Components include the flight data 
9
10 model, instrument panel, sound, electrical and external 3D model.
11
12
13
14 May 2005 Vivian Meazza, vivian.meazza at lineone.net
15
16 ************************************************************************
17
18 -->
19 <PropertyList>
20
21         <engines>
22                 <engine>
23                 <rpm type="double">750</rpm>
24                 <rad-flap-norm type="double">0</rad-flap-norm>
25         </engine>
26         </engines>
27         <consumables>
28                 <fuel>
29                         <tank n="0">
30                                 <name type="string">Port</name>
31                                 <level-gal_us>39.63</level-gal_us>
32                                 <selected type="bool">1</selected>
33                         </tank>
34                         <tank n="1">
35                                 <name type="string">Stbd</name>
36                                 <level-gal_us>39.63</level-gal_us>
37                                 <selected type="bool">1</selected>
38                         </tank>
39                         <tank n="2">
40                                 <name type="string">Reserve</name>
41                                 <level-gal_us>33.62</level-gal_us>
42                                 <selected type="bool">0</selected>
43                         </tank>
44                 </fuel>
45                 <oxygen>
46                         <tank n="0">
47                                 <name type="string">1</name>
48                                 <capacity-cu-ft type="double">0.4</capacity-cu-ft>
49                                 <level-cu-ft type="double">54</level-cu-ft>
50                                 <selected type="bool">1</selected>
51                         </tank>
52                 </oxygen>
53         </consumables>
54         <!-- set up control properties ... -->
55         <controls>
56                 <fuel>
57                         <crossfeed type ="int">1</crossfeed>
58                 </fuel>
59                 <engines>
60                         <engine n="0">
61                                 <mag-switch-left type="bool">0</mag-switch-left>
62                                 <mag-switch-right type="bool">0</mag-switch-right>
63                                 <magnetos>0</magnetos>
64                                 <cutoff-pull-norm type="double">0</cutoff-pull-norm>
65                                 <fuel-cock>
66                                         <lever type="double">1</lever>
67                                 </fuel-cock>
68                                 <mixture-lever type="double">1</mixture-lever>
69                                 <primer type = "int">0</primer>
70                                 <primer-pump type = "bool">0</primer-pump>
71                                 <boost type= "double">0.70</boost>
72                                 <cutout type= "bool">0</cutout>
73                                 <rad-flap-norm type="double">0</rad-flap-norm>
74                         </engine>
75                 </engines>
76                 <gear>
77                         <brake-parking>1</brake-parking>
78                         <tailwheel-lock>false</tailwheel-lock>
79                         <antiskid>0</antiskid>
80                         <canopy>
81                                 <position-norm type="double">1</position-norm>
82                         </canopy>
83                 </gear>
84                 <flight>
85                         <flaps-alternate-extension type="double">1</flaps-alternate-extension>
86                         <elevator-trim>0</elevator-trim>
87                         <door-position-norm type="double">1</door-position-norm>
88                         <wing-fold>1</wing-fold>
89                         <canopy-slide type="bool">1</canopy-slide>
90                 </flight>
91                 <hydraulic>
92                         <lever type="double">0</lever>
93                         <lever type="double">0</lever>
94                         <wheels type="double">1</wheels>
95                 </hydraulic>
96                 <switches>
97                         <fuel-gauge>0</fuel-gauge>
98                         <fuel-gauge-sel type="int">2</fuel-gauge-sel>
99                         <gun-sight-main>0</gun-sight-main>
100                         <gun-sight-dimmer>0</gun-sight-dimmer>
101                 </switches>
102                 <lighting>
103                         <nav-lights>false</nav-lights>
104                         <landing-light type="int">0</landing-light>
105                 </lighting>
106         </controls>
107         <gear>
108                 <gear n="0" type="double">0</gear>
109         </gear>
110         <surface-positions>
111                 <wing-fold-pos-norm type="double">1</wing-fold-pos-norm>
112         </surface-positions>
113         
114         <sim include="help.xml">
115                 <description type="string">Hawker Hurricane IIb</description>
116                 <author type="string">Vivian Meazza</author>
117                 <status>production</status>
118                 <flight-model>yasim</flight-model>
119                 <aero>hurricaneIIb</aero>
120                 <startup>
121                         <splash-texture>Aircraft/Hurricane/Hurricane-splash.png</splash-texture>
122                 </startup>
123                 <fuel-fraction>1</fuel-fraction>
124                 <systems>
125                         <autopilot>
126                                 <path>Aircraft/Hurricane/Systems/hurricane-autopilot.xml</path>
127                         </autopilot>
128                         <electrical>
129                                 <path>Aircraft/Hurricane/Systems/electrical.xml</path>
130                         </electrical>
131                         <vacuum>
132                                 <serviceable>true</serviceable>
133                         </vacuum>
134                 </systems>
135                 <instrumentation>
136                         <path>Aircraft/Hurricane/Systems/instrumentation.xml</path>
137                 </instrumentation>
138                 <submodels>
139                         <serviceable type="bool">true</serviceable>
140                         <path>Aircraft/Hurricane/Models/hurricane-submodels.xml</path>
141                 </submodels>
142                 <virtual-cockpit archive="y">true</virtual-cockpit>
143                 <allow-toggle-cockpit archive="y">false</allow-toggle-cockpit>
144                 <sound>
145                         <audible>true</audible>
146                         <path>Aircraft/Hurricane/Sounds/hurricane-sound.xml</path>
147                 </sound>
148                 <hud>
149                         <path n="1">Aircraft/Hurricane/Systems/hurricane-sight.xml</path>
150                         <visibility n="1">true</visibility>
151                         <font>
152                                 <size type="float">10.0</size>
153                         </font>
154                         <palette>
155                                 <color n="0">
156                                         <!-- day -->
157                                         <red type="float">1.0</red>
158                                         <green type="float">0.4</green>
159                                         <blue type="float">0.0</blue>
160                                 </color>
161                         </palette>
162                 </hud>
163                 <aim>
164                         <active type="bool">false</active>
165                         <tachy type="bool">true</tachy>
166                         <align type="bool">false</align>
167                         <radius type="float">1</radius>
168                         <speed-fps type="float">2755.9</speed-fps>
169                         <range-yds type="float">550</range-yds>
170                         <arc>
171                                 <start-deg type="float">10</start-deg>
172                                 <stop-deg type="float">270</stop-deg>
173                         </arc>
174                         <offsets>
175                                 <x type="float">-15</x>
176                                 <y type="float">-10</y>
177                         </offsets>
178                         <compression-factor type ="float">2</compression-factor>
179                 </aim>
180                 <panel>
181                         <path>Aircraft/Generic/Panels/generic-vfr-panel.xml</path>
182                         <visibility>false</visibility>
183                 </panel>
184                 <model>
185                         <path>Aircraft/Hurricane/Models/hurricane_model.xml</path>
186                 </model>
187
188                 <rendering>
189                         <camera-group>
190                                 <znear type="double">0.1</znear>
191                         </camera-group>
192                 </rendering>
193                 <view n="0">
194                         <internal archive="y">true</internal>
195                         <!--3.75921     0.707925        0.0318054-->
196                         <config>
197                                 <x-offset-m archive="y"
198                                                                                 type="double">0.0</x-offset-m>
199                                 <y-offset-m archive="y"
200                                                                                 type="double">0.70</y-offset-m>
201                                 <z-offset-m archive="y"
202                                                                                 type="double">3.76</z-offset-m>
203                                 <pitch-offset-deg>-10</pitch-offset-deg>
204                                 <limits>
205                                         <enabled type="bool">true</enabled>
206                                         <left>
207                                                 <heading-max-deg type="double">145</heading-max-deg>
208                                                 <x-offset-max-m type="double">0.16</x-offset-max-m>
209                                                 <x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
210                                         </left>
211                                         <right>
212                                                 <heading-max-deg type="double">145</heading-max-deg>
213                                                 <x-offset-max-m type="double">0.16</x-offset-max-m>
214                                                 <x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
215                                         </right>
216                                 </limits>
217                         </config>
218                 </view>
219                 <view n="1">
220                         <config>
221                                 <target-z-offset-m archive="y"
222                                                                                                          type="double">3.4</target-z-offset-m>
223                         </config>
224                 </view>
225                 <view n="2">
226                         <config>
227                                 <target-z-offset-m archive="y"
228                                                                                                          type="double">3.4</target-z-offset-m>
229                         </config>
230                 </view>
231                 <view n="3">
232                         <config>
233                                 <target-z-offset-m archive="y"
234                                                                                                          type="double">3.4</target-z-offset-m>
235                         </config>
236                 </view>
237                 <view n="4">
238                         <config>
239                                 <target-z-offset-m archive="y"
240                                                                                                          type="double">3.4</target-z-offset-m>
241                         </config>
242                 </view>
243                 <view n="5">
244                         <config>
245                                 <target-z-offset-m archive="y"
246                                                                                                          type="double">3.4</target-z-offset-m>
247                         </config>
248                 </view>
249                 <view n="6">
250                         <config>
251                                 <target-z-offset-m archive="y"
252                                                                                                          type="double">3.4</target-z-offset-m>
253                         </config>
254                 </view>
255                 
256                 <flaps>
257                         <setting>0.00</setting>
258                         <setting>1.00</setting>
259                 </flaps>
260                 
261                 <alarms>
262                         <gear-warn type="double">0</gear-warn>
263                 </alarms>
264                 
265                 <tutorials>
266                         <tutorial include="Tutorials/startup_tutorial.xml"/>
267                 </tutorials>
268                 
269                 <menubar>
270                         <default>
271                                 <menu n="10">
272                                         <label>Hurricane</label>
273                                         <enabled type="bool">true</enabled>
274                                         <item>
275                                                 <label>Toggle pilot model</label>
276                                                 <binding>
277                                                         <command>property-toggle</command>
278                                                         <property>sim/model/hurricane/show-pilot</property>
279                                                 </binding>
280                                         </item>
281                                 </menu>
282                         </default>
283                 </menubar>
284                 <hurricane>
285                         <show-pilot archive="y"
286                                                                         type="bool">true</show-pilot>
287                 </hurricane>
288
289         <multiplay>
290                 <generic>
291                         <string n="0"
292                                                         alias="/sim/submodels/path"/>
293                         <int n="0"
294                                          alias="/engines/engine[0]/running"/>
295                         <int n="1"
296                                          alias="/gear/gear[0]/tyre-smoke"/>
297                         <int n="2"
298                                          alias="/gear/gear[1]/tyre-smoke"/>
299                         <int n="3"
300                                          alias="/gear/gear[2]/tyre-smoke"/>
301                         <int n="4"
302                                          alias="/controls/lighting/nav-lights"/>
303                         <int n="5"
304                                          alias="/controls/armament/trigger"/>
305                         <int n="6"
306                                          alias="/controls/lighting/landing-light"/>
307                         <float n="0"
308                                                  alias="/gear/gear[0]/sprayspeed-ms"/>
309                         <float n="1"
310                                                  alias="/gear/gear[1]/sprayspeed-ms"/>
311                         <float n="2"
312                                                  alias="/gear/gear[2]/sprayspeed-ms"/>
313                         <float n="3"
314                                                  alias="/gear/gear[0]/spray-density"/>
315                         <float n="4"
316                                                  alias="/gear/gear[1]/spray-density"/>
317                         <float n="5"
318                                                  alias="/gear/gear[2]/spray-density"/>
319                         <float n="6"
320                                                  alias="/position/altitude-agl-ft"/>
321                         <float n="7"
322                                                  alias="/gear/gear/caster-angle-deg"/>
323                         <float n="8"
324                                                  alias="/controls/engines/engine[0]/throttle"/>
325                         <float n="9"
326                                                  alias="/gear/canopy/position-norm"/>
327                         <float n="10"
328                                                  alias="/controls/flight/door-position-norm"/>
329                         <float n="11"
330                                                  alias="/sim/time/hobbs/engine[0]"/>
331                         <float n="12"
332                                                  alias="/engines/engine/rad-flap-norm"/>
333                 </generic>
334         </multiplay>
335
336         </sim>
337
338
339         <!-- ================ map keyboard ================ -->
340         <input>
341                 <keyboard>
342                         <key n="2">
343                                 <name>Ctrl-B</name>
344                                 <desc>Toggle engine boost.</desc>
345                                 <binding>
346                                         <command>nasal</command>
347                                         <script>
348
349                                                 hurricane.toggleBoost();
350
351                                         </script>
352                                 </binding>
353                         </key>
354                         
355                         <!-- map keys for rudder trim -->
356                         <key n="60">
357                                 <name>&lt;</name>
358                                 <desc>Rudder Trim Left</desc>
359                                 <repeatable>true</repeatable>
360                                 <binding>
361                                         <command>property-adjust</command>
362                                         <property>/controls/flight/rudder-trim</property>
363                                         <min type="double">-3.0</min>
364                                         <step type="double">-0.01</step>
365                                 </binding>
366                         </key>
367                         
368                         <key n="62">
369                                 <name>&gt;</name>
370                                 <desc>Rudder Trim Right</desc>
371                                 <repeatable>true</repeatable>
372                                 <binding>
373                                         <command>property-adjust</command>
374                                         <property>/controls/flight/rudder-trim</property>
375                                         <max type="double">3.0</max>
376                                         <step type="double">0.01</step>
377                                 </binding>
378                         </key>
379                         
380                         <!--map keys for foot/handhold open/close -->
381                         <key n="68">
382                                 <name>D</name>
383                                 <desc>Door Fold Down.</desc>
384                                 <binding>
385                                         <command>nasal</command>
386                                         <script>
387
388                                                 hurricane.openDoor(1);
389
390                                         </script>
391                                 </binding>
392                         </key>
393                         <key n="100">
394                                 <name>d</name>
395                                 <desc>Door Fold Up.</desc>
396                                 <binding>
397                                         <command>nasal</command>
398                                         <script>
399
400                                                 hurricane.openDoor(0);
401
402                                         </script>
403                                 </binding>
404                         </key>
405                         <key n="4">
406                                 <name>CTRL D</name>
407                                 <desc>Door Fold Toggle.</desc>
408                                 <binding>
409                                         <command>nasal</command>
410                                         <script>
411
412                                                 hurricane.toggleDoor();
413
414                                         </script>
415                                 </binding>
416                         </key>
417                         
418                         <key n="6">
419                                 <name>Ctrl-F</name>
420                                 <desc>Toggle Wingfold.</desc>
421                                 <binding>
422                                         <command>property-toggle</command>
423                                         <property>controls/flight/wing-fold</property>
424                                 </binding>
425
426                         </key>
427                         <key n="12">
428                                 <name>Ctrl-L</name>
429                                 <desc>Toggle Tailwheel Lock.</desc>
430                                 <binding>
431                                         <command>property-toggle</command>
432                                         <property>controls/gear/tailwheel-lock</property>
433                                 </binding>
434                         </key>
435                         <!--     map keys for wing fold - used for canopy control -->
436                         <key n="70">
437                                 <name>F</name>
438                                 <desc>Close Canopy.</desc>
439                                 <binding>
440                                         <command>nasal</command>
441                                         <script>
442
443                                                 hurricane.openCanopy(1);
444
445                                         </script>
446                                 </binding>
447                         </key>
448                         <key n="102">
449                                 <name>f</name>
450                                 <desc>Close Canopy.</desc>
451                                 <binding>
452                                         <command>nasal</command>
453                                         <script>
454
455                                                 hurricane.openCanopy(0);
456
457                                         </script>
458                                 </binding>
459                         </key>
460                         
461                         <!-- map keys for radiator flap -->
462                         <key n="72">
463                                 <name>H</name>
464                                 <desc>Radiator Flap down.</desc>
465                                 <binding>
466                                         <command>property-assign</command>
467                                         <property>controls/engines/engine/rad-flap-norm</property>
468                                         <value type="double">0.334</value>
469                                 </binding>
470                         </key>
471                         <key n="104">
472                                 <name>h</name>
473                                 <desc>Radiator Flap Up.</desc>
474                                 <binding>
475                                         <command>property-assign</command>
476                                         <property>controls/engines/engine/rad-flap-norm</property>
477                                         <value type="double">0.0</value>
478                                 </binding>
479                         </key>
480                         
481                         <!-- map keys for Cancel Gear Warning  -->
482                         <key n="107">
483                                 <name>k</name>
484                                 <desc>Gear Warn Toggle.</desc>
485                                 <binding>
486                                         <command>nasal</command>
487                                         <script>
488
489                                                 hurricane.toggleGearWarn();
490
491                                         </script>
492                                 </binding>
493                         </key>
494                         <key n="75">
495                                 <name>K</name>
496                                 <desc>Gear Warn Toggle.</desc>
497                                 <binding>
498                                         <command>nasal</command>
499                                         <script>
500
501                                                 hurricane.toggleGearWarn();
502
503                                         </script>
504                                 </binding>
505                         </key>
506
507                         <!-- map keys for seat vertical adjust -->
508                         <key n="21">
509                                 <name>CTRL-U</name>
510                                 <desc>Seat Default.</desc>
511                                 <binding>
512                                         <command>property-assign</command>
513                                         <property>/controls/seat/vertical-adjust</property>
514                                         <value type="double">0</value>
515                                 </binding>
516                                 <binding>
517                                         <condition>
518                                                 <equals>
519                                                         <property>sim/current-view/view-number</property>
520                                                         <value>0</value>
521                                                 </equals>
522                                         </condition>
523                                         <command>property-assign</command>
524                                         <property>sim/current-view/y-offset-m</property>
525                                         <value type="double">0.70</value>
526                                 </binding>
527                         </key>
528                         <key n="85">
529                                 <name>U</name>
530                                 <desc>Seat Down.</desc>
531                                 <binding>
532                                         <command>property-adjust</command>
533                                         <property>/controls/seat/vertical-adjust</property>
534                                         <step type="double">-0.01</step>
535                                         <min type="double">-0.05</min>
536                                         <max type="double">0.05</max>
537                                 </binding>
538                                 <binding>
539                                         <condition>
540                                                 <equals>
541                                                         <property>sim/current-view/view-number</property>
542                                                         <value>0</value>
543                                                 </equals>
544                                         </condition>
545                                         <command>property-adjust</command>
546                                         <property>sim/current-view/y-offset-m</property>
547                                         <step type="double">-0.01</step>
548                                         <min type="double">0.64</min>
549                                         <max type="double">0.74</max>
550                                 </binding>
551                         </key>
552                         <key n="117">
553                                 <name>u</name>
554                                 <desc>Seat Up.</desc>
555                                 <binding>
556                                         <command>property-adjust</command>
557                                         <property>controls/seat/vertical-adjust</property>
558                                         <step type="double">0.01</step>
559                                         <min type="double">-0.05</min>
560                                         <max type="double">0.05</max>
561                                 </binding>
562                                 <binding>
563                                         <condition>
564                                                 <equals>
565                                                         <property>sim/current-view/view-number</property>
566                                                         <value>0</value>
567                                                 </equals>
568                                         </condition>
569                                         <command>property-adjust</command>
570                                         <property>sim/current-view/y-offset-m</property>
571                                         <step type="double">0.01</step>
572                                         <min type="double">0.64</min>
573                                         <max type="double">0.74</max>
574                                 </binding>
575                         </key>
576                         <!-- map keys for mag switches  -->
577                         <key n="123">
578                                 <name>{</name>
579                                 <desc>Mag Switch Left Toggle.</desc>
580                                 <binding>
581                                         <command>nasal</command>
582                                         <script>
583
584                                                 hurricane.toggleleftMagswitch();
585
586                                         </script>
587                                 </binding>
588                         </key>
589                         <key n="125">
590                                 <name>}</name>
591                                 <desc>Mag Switch Right Toggle.</desc>
592                                 <binding>
593                                         <command>nasal</command>
594                                         <script>
595
596                                                 hurricane.togglerightMagswitch();
597
598                                         </script>
599                                 </binding>
600                         </key>
601                         
602                         <!-- map keys for fuel cocks  -->
603                         <key n="40">
604                                 <name>(</name>
605                                 <desc>Fuel Cock Close.</desc>
606                                 <binding>
607                                         <command>nasal</command>
608                                         <script>
609
610                                                 hurricane.closeCock();
611
612                                         </script>
613                                 </binding>
614                         </key>
615                         <key n="41">
616                                 <name>)</name>
617                                 <desc>Fuel Cock Open.</desc>
618                                 <binding>
619                                         <command>nasal</command>
620                                         <script>
621
622                                                 hurricane.openCock();
623
624                                         </script>
625                                 </binding>
626                         </key>
627                         <!-- map keys for priming pump -->
628                         <key n="73">
629                                 <name>I</name>
630                                 <desc>Operate Priming Pump.</desc>
631                                 <binding>
632                                         <command>nasal</command>
633                                         <script>
634
635                                                 hurricane.pumpPrimer(1);
636
637                                         </script>
638                                 </binding>
639                                 <mod-up>
640                                         <binding>
641                                                 <command>nasal</command>
642                                                 <script>
643
644                                                         hurricane.pumpPrimer(0);
645
646                                                 </script>
647                                         </binding>
648                                 </mod-up>
649                         </key>
650                         
651                         <!-- map keys for catapult launch Sea hurrcane to come someday-->
652                         <key n="67">
653                                 <name>C</name>
654                                 <desc>Catapult Launch Command.</desc>
655                                 <binding>
656                                         <command>property-toggle</command>
657                                         <property>/controls/gear/catapult-launch-cmd</property>
658                                 </binding>
659                         </key>
660                         <!-- map keys for launch-bar -->
661                         <key n="76">
662                                 <name>L</name>
663                                 <desc>Launch-bar engage.</desc>
664                                 <binding>
665                                         <command>property-toggle</command>
666                                         <property>/controls/gear/launchbar</property>
667                                 </binding>
668                         </key>
669                         <!-- map keys for arrester hook -->
670                         <key n="79">
671                                 <name>O</name>
672                                 <desc>Hook down.</desc>
673                                 <binding>
674                                         <command>property-assign</command>
675                                         <property>controls/gear/tailhook</property>
676                                         <value type="double">1.0</value>
677                                 </binding>
678                         </key>
679                         <key n="115">
680                                 <name>s</name>
681                                 <desc>Fire starter.</desc>
682                                 <binding>
683                                         <command>nasal</command>
684                                         <script>hurricane.startCof(1);</script>
685                                 </binding>
686                                 <mod-up>
687                                         <binding>
688                                                 <command>nasal</command>
689                                                 <script>hurricane.startCof(0);</script>
690                                         </binding>
691                                 </mod-up>
692                         </key>
693                         <!--        <key n="111"> 
694
695           <name>o</name>
696
697           <desc>Hook Up.</desc>
698
699           <binding> 
700
701             <command>property-assign</command>
702
703             <property>controls/gear/tailhook</property>
704
705             <value type="double">0.0</value>
706
707           </binding>
708
709         </key> -->
710                 </keyboard>
711         </input>
712         <!-- instruments -->
713         <instrumentation>
714                 <fuel>
715                         <serviceable type="bool">1</serviceable>
716                 </fuel>
717         </instrumentation>
718         <!-- weights -->
719         <yasim>
720                 <weights>
721                         <pilot-lb type="double">200</pilot-lb>
722                         <round-lb type="double">0.33</round-lb>
723                 </weights>
724         </yasim>
725         <!-- nasal stuff -->
726         <nasal>
727                 <hurricane-fuel>
728                         <module>fuel</module>
729                         <file>Aircraft/Hurricane/Nasal/fuel-cocks.nas</file>
730                 </hurricane-fuel>
731                 <hurricane>
732                         <file>Aircraft/Hurricane/Nasal/hurricane.nas</file>
733                 </hurricane>
734                 <oxygen>
735                         <file>Aircraft/Generic/Oxygen/oxygen.nas</file>
736                 </oxygen>
737                 <!--<recoil>
738                                         <file>Aircraft/Hurricane/Models/recoil.nas</file>
739                                 </recoil>-->
740         </nasal>
741 </PropertyList>