-adding Status Rating, small update of ReadMe and remove unneeded file
[fg:toms-fgdata.git] / Aircraft / ec135 / ec135-set.xml
1 <?xml version="1.0"?>
2 <!--
3 ************************************************************************
4 EC 135 simulation config.
5
6 This model of the Ec 135 is dedicated to heliflyer.
7 Thanks for all the help!
8
9 ************************************************************************
10 -->
11
12 <PropertyList>
13         <sim>
14                 <description>Eurocopter EC135</description>
15                 <author>Heiko Schulz, Maik Justus (FDM), Melchior Franz (Nasal)</author>
16                 <status>beta</status>
17                     <rating>
18                 <FDM type="int">3</FDM>
19                     <systems type="int">1</systems>
20                    <cockpit type="int">3</cockpit>
21                    <model type="int">4</model>
22                    </rating>
23                 <license>GPL v2</license>
24                 <aircraft-version>0.6</aircraft-version>
25
26                 <flight-model>yasim</flight-model>
27                 <aero>ec135</aero>
28                 <fuel-fraction>0.8</fuel-fraction>
29
30                 <startup>
31                         <splash-texture>Aircraft/ec135/splash.rgb</splash-texture>
32                 </startup>
33
34                 <sound>
35                         <path>Aircraft/ec135/Sounds/sound.xml</path>
36                 </sound>
37
38
39                 <instrumentation>
40                         <path>Aircraft/ec135/instrumentation/instrumentation.xml</path>
41                 </instrumentation>
42
43
44                 <model>
45                         <path archive="y">Aircraft/ec135/Models/ec135.xml</path>
46                         <variant type="int">0</variant>
47                         <livery>
48                               <file type="string">Bavarian Police "Edelweiss"</file>
49             </livery>
50            <liverytail>
51             <file type="string">Bavarian Police "Edelweiss"</file>
52             </liverytail>
53             <rotorblade>
54                                 <name type="string">Bavarian Police "Edelweiss"</name>
55                                          <index type="int">1</index>
56                                           <texture>rotorblade.png</texture>
57                                 </rotorblade>
58                         <ec135>
59                                 <state type="int">0</state>
60                                 <rotor-step-deg type="float">-1.0</rotor-step-deg>
61
62                                 <hide-gsdi>true</hide-gsdi>
63                                 <binocular_standart type="bool">true</binocular_standart>
64                                 <binocular_tri type="bool">false</binocular_tri>
65                                 <winch>false</winch>
66                                 <mirror>false</mirror>
67                                 <wirecutter_skid>false</wirecutter_skid>
68                                 <wirecutter_up>false</wirecutter_up>
69                                 <nose>false</nose>
70                                 <nosefl>true</nosefl>
71                                 <radardome>false</radardome>
72                                 <antennaset>true</antennaset>
73                                 <plateleft>false</plateleft>
74                                 <plateright>true</plateright>
75                                 <reardoorwindow>true</reardoorwindow>
76                                 <reardoor_norm>false</reardoor_norm>
77                                 
78                                 <doors>
79                                         <door>
80                                                 <position-norm type="double">0.0</position-norm>
81                                                 <name type="string">pilot's door</name>
82                                         </door>
83
84                                         <door>
85                                                 <position-norm type="double">0.0</position-norm>
86                                                 <name type="string">copilot's door</name>
87                                         </door>
88
89                                         <door>
90                                                 <position-norm type="double">0.0</position-norm>
91                                                 <name type="string">right backdoor</name>
92                                         </door>
93
94                                         <door>
95                                                 <position-norm type="double">0.0</position-norm>
96                                                 <name type="string">left backdoor</name>
97                                         </door>
98
99                                         <door>
100                                                 <position-norm type="double">0.0</position-norm>
101                                                 <name type="string">right reardoor</name>
102                                         </door>
103
104                                         <door>
105                                                 <position-norm type="double">0.0</position-norm>
106                                                 <name type="string">left reardoor</name>
107                                         </door>
108                                 </doors>
109                                 
110                         </ec135>
111                 </model>
112                 
113                 
114
115                 <!--view-->
116                 <view n="0">
117                         <name>Cockpit</name>
118                         <type>lookfrom</type>
119                         <internal type="bool">true</internal>
120                         <config>
121                                         <x-offset-m type="double">0.41</x-offset-m><!--left-->
122                                 <y-offset-m type="double">0.35</y-offset-m><!--up-->
123                                 <z-offset-m type="double">0.95</z-offset-m><!--back-->
124                                 <pitch-offset-deg>-14</pitch-offset-deg>
125                                 <default-field-of-view-deg type="double">55.0</default-field-of-view-deg>
126                         </config>
127                 </view>
128
129                 <view n="1">
130                         <config>
131                                 <target-z-offset-m archive="y" type="double">2.5</target-z-offset-m>
132                         </config>
133                 </view>
134
135                 <view n="2">
136                         <config>
137                                 <target-z-offset-m archive="y" type="double">2.5</target-z-offset-m>
138                         </config>
139                 </view>
140
141                 <view n="3">
142                         <config>
143                                 <target-z-offset-m archive="y" type="double">2.5</target-z-offset-m>
144                         </config>
145                 </view>
146
147                 <view n="4">
148                         <config>
149                                 <target-z-offset-m archive="y" type="double">2.5</target-z-offset-m>
150                         </config>
151                 </view>
152
153                 <view n="5">
154                         <config>
155                                 <target-z-offset-m archive="y" type="double">2.5</target-z-offset-m>
156                         </config>
157                 </view>
158
159                 <view n="6">
160                         <config>
161                                 <target-z-offset-m archive="y" type="double">2.5</target-z-offset-m>
162                         </config>
163                 </view>
164
165
166                 <weight n="0">
167                         <name>Pilot</name>
168                         <weight-lb>180</weight-lb>
169                         <max-lb>300</max-lb>
170                 </weight>
171
172                 <weight n="1">
173                         <name>Co-Pilot</name>
174                         <weight-lb>180</weight-lb>
175                         <max-lb>300</max-lb>
176                 </weight>
177
178                 <weight n="2">
179                         <name>Right Passenger</name>
180                         <weight-lb>0</weight-lb>
181                         <max-lb>300</max-lb>
182                 </weight>
183
184                 <weight n="3">
185                         <name>Middle Passenger</name>
186                         <weight-lb>0</weight-lb>
187                         <max-lb>300</max-lb>
188                 </weight>
189
190                 <weight n="4">
191                         <name>Left Passenger</name>
192                         <weight-lb>0</weight-lb>
193                         <max-lb>300</max-lb>
194                 </weight>
195
196                 <weight n="5">
197                         <name>Load</name>
198                         <weight-lb>0</weight-lb>
199                         <max-lb>800</max-lb>
200                 </weight>
201
202                 <help>
203                         <title>EC 135 - background and help</title>
204                         <line></line>
205                         <line>Informations about the Eurocopter EC 135</line>
206                         <line></line>
207                         <line>The EC 135 is a light twin, multi-mission helicopter.</line>
208                         <line>Eurocopter has two version of it: the EC 135 P2i and the EC 135 T2i</line>
209                         <line>P2 stands for the PRATT and WHITNEY PW 206B2 turbine engine with 743 PS (horsepower).</line>
210                         <line>T2 stands for TURBOMECA Arrius 2B2 turbine engine with 706 PS.</line>
211                         <line>The EC 135 descends from the MBB Bo 108.</line>
212                         <line>The Bo 108 was a demonstration prototype for fly-by-wire and has it's descend from the famous Bo 105.</line>
213                         <line>When the Eurocopter company was founded, the Bo 108 came with.</line>
214                         <line>Eurocopter decided that there was a marcetplace for such a helicopter and the developement went on.</line>
215                         <line> From the french partners it got the fenestron, from MBB the hingeless rotor. </line>
216                         <line>The fenestron makes it very hard for dangerous situations in the range of the tail rotor</line>
217                         <line>and reduces the noise level about 50% to other helicopters</line>
218                         <line>That's why the EC 135 is a vey recommanded helicopter for EMS and the police, especially in Europe</line>
219                         <line></line>
220                         <line>Help</line>
221                         <line></line>
222                         <line>starting the engines -> press }-key</line>
223                         <line>shut down the engines -> press {-key</line>
224                         <line>toggle rotor brake -> press N-key</line>
225                         <line>collective -> page up/down- keys</line>
226                         <line>Open/ Close doors -> click the menu "EC135" panel above</line>
227                         <line>change livery ->press l-key</line>
228                         <line>landinglight ->press g/G-key</line>
229
230
231                 </help>
232
233                 <hitches>
234                         <!-- make sure some properties do exist, when the list for multiplayer transfere is defined-->
235                         <!-- they need to be in the same value, as they are initilized in the FDM, to get the same values after reset
236     should fix this somehow-->
237                         <aerotow>
238                                 <tow>
239                                         <length type="float">60</length>
240                                         <elastic-constant type="float">10000</elastic-constant>
241                                         <weight-per-m-kg-m type="float">1</weight-per-m-kg-m>
242                                         <dist type="float">1</dist>
243                                         <connected-to-property-node type="bool"></connected-to-property-node>
244                                         <brake-force type="float">100000</brake-force>
245                                         <connected-to-ai-or-mp-callsign type ="string">*</connected-to-ai-or-mp-callsign>
246                                         <end-force-x type ="float">0</end-force-x>
247                                         <end-force-y type ="float">0</end-force-y>
248                                         <end-force-z type ="float">0</end-force-z>
249                                 </tow>
250                                 <speed-in-tow-direction type="float">0</speed-in-tow-direction>
251                                 <open type="bool">true</open>
252                                 <local-pos-x type="float">0</local-pos-x>
253                                 <local-pos-y type="float">0</local-pos-y>
254                                 <local-pos-z type="float">0</local-pos-z>
255                                 <is-slave type="bool">true</is-slave>
256                         </aerotow>
257                 </hitches>
258
259                 <menubar>
260                         <default>
261                                  <menu n="10">
262       <label>Ec135</label>
263       <enabled type="bool">true</enabled>
264       <item>
265         <label>Select Livery</label>
266         <binding>
267           <command>nasal</command>
268           <script>aircraft.livery.dialog.toggle()</script>
269         </binding>
270       </item>
271                                                  
272                                                                                                      
273                                         <item>
274                                                 <label>Show/hide GSDI</label>
275                                                 <binding>
276                                                         <command>property-toggle</command>
277                                                         <property>/sim/model/hide-gsdi</property>
278                                                 </binding>
279                                         </item>
280                                 </menu>
281                         </default>
282                 </menubar>
283         </sim>
284
285         <consumables>
286                 <fuel>
287                         <tank>
288                                 <name>Main</name>
289                                 <selected type="bool" write="n">1</selected>
290                                 <density-ppg type="double" write="n">6.682</density-ppg>
291                         </tank>
292
293                         <tank>
294                                 <name>Supply</name>
295                                 <selected type="bool" write="n">1</selected>
296                                 <density-ppg type="double" write="n">6.682</density-ppg>
297                         </tank>
298                 </fuel>
299         </consumables>
300
301         <controls>
302                 <rotor>
303                         <reltarget type="double">0</reltarget>
304                         <maxreltorque type="double">0</maxreltorque>
305                 </rotor>
306
307
308                 <lighting>
309                         <strobe type="bool">true</strobe>
310                         <beacon type="bool">true</beacon>
311                         <nav-lights type="bool">true</nav-lights>
312                 </lighting>
313         </controls>
314
315         <instrumentation>
316                 <gsdi>
317                         <serviceable type="bool">true</serviceable>
318                 </gsdi>
319                 <hsi>
320                         <serviceable type="bool" archive="y">true</serviceable>
321                 </hsi>
322         </instrumentation>
323
324         <input>
325                 <keyboard>
326                 
327                 <!--<key n="4">
328                                 <name>Ctrl-D</name>
329                                 <desc>Open/close selected door</desc>
330                                 <binding>
331                                         <command>nasal</command>
332                                         <script>ec135.doors.toggle()</script>
333                                 </binding>
334                         </key>
335                 
336                 <key n="68">
337                                 <name>D</name>
338                                 <desc>Select previous door</desc>
339                                 <binding>
340                                         <command>nasal</command>
341                                         <script>ec135.doors.previous()</script>
342                                 </binding>
343                         </key>
344                 
345                 <key n="100">
346                                 <name>d</name>
347                                 <desc>Select next door</desc>
348                                 <binding>
349                                         <command>nasal</command>
350                                         <script>ec135.doors.next()</script>
351                                 </binding>
352                         </key>-->
353                 
354 <key n="4">
355     <name>Ctrl-d</name>
356     <desc>Toggle SAS enabled</desc>
357     <binding>
358       <command>nasal</command>
359       <script>ec135.sas.toggleEnable();</script>
360     </binding>
361   </key>
362
363
364
365  <!--
366 only needed for test flights and bug hunting 
367  <key n="6">
368     <name>Ctrl-f</name>
369     <desc>Toggle AutoHover</desc>
370     <binding>
371       <command>nasal</command>
372       <script>ec135.afcs.toggleAutoHover();</script>
373    </binding>
374     <binding>
375       <command>nasal</command>
376       <script>ec135.cas.toggleEnable();</script>
377     </binding>
378
379   </key>-->
380
381                         
382                         <key n="82">
383                                 <name>R</name>
384                                 <desc>Toggle rotor brake</desc>
385                                 <binding>
386                                         <command>nasal</command>
387                                         <script>
388                                                 var p = "/controls/rotor/brake";
389                                                 setprop(p, !getprop(p));
390                                         </script>
391                                 </binding>
392                         </key>
393                         
394                         <key n="105">
395                                 <name>i</name>
396                                 <desc>Toggle ignition switch</desc>
397                                 <binding>
398                                         <command>nasal</command>
399                                         <script>
400                                                 foreach (var e; controls.engines) {
401                                                         if (e.selected.getValue()) {
402                                                                 var i = e.controls.getNode("ignition", 1);
403                                                                 i.setValue(!i.getValue());
404                                                         }
405                                                 }
406                                         </script>
407                                 </binding>
408                         </key>
409
410                         <key n="114">
411                                 <name>r</name>
412                                 <desc>Apply rotor brake</desc>
413                                 <binding>
414                                         <command>nasal</command>
415                                         <script>interpolate("/controls/rotor/brake", 1.0, 2)</script>
416                                 </binding>
417                                 <mod-up>
418                                         <binding>
419                                                 <command>nasal</command>
420                                                 <script>interpolate("/controls/rotor/brake", 0.0, 2)</script>
421                                         </binding>
422                                 </mod-up>
423                         </key>
424
425                         <key n="118">
426                                 <name>Alt-v</name>
427                                 <desc>Toggle dynamic cockpit view</desc>
428                                 <mod-alt>
429                                         <binding>
430                                                 <command>property-toggle</command>
431                                                 <property>/sim/view/dynamic/enabled</property>
432                                         </binding>
433                                 </mod-alt>
434                         </key>
435
436
437                         <key n="123">
438                                 <name>{</name>
439                                 <desc>Shutdown Engines</desc>
440                                 <binding>
441                                         <command>nasal</command>
442                                         <script>ec135.shutdown()</script>
443                                         <condition>
444                                                 <property>/sim/signals/fdm-initialized</property>
445                                         </condition>
446                                 </binding>
447                                 <!-- <binding>
448       <command>nasal</command>
449       <script>ec135.cas.toggleEnable();</script>
450     </binding>-->
451                         </key>
452
453                         <key n="125">
454                                 <name>}</name>
455                                 <desc>Start Engines</desc>
456                                 <binding>
457                                         <command>nasal</command>
458                                         <script>ec135.startup()</script>
459                                         <condition>
460                                                 <property>/sim/signals/fdm-initialized</property>
461                                         </condition>
462                                 </binding>
463                                 <!-- <binding>
464       <command>nasal</command>
465       <script>ec135.cas.toggleEnable();</script>
466     </binding>-->
467                         </key>
468
469                         <key n="79">
470                                 <name>O</name>
471                                 <desc>Open aerotow hook</desc>
472                                 <binding>
473                                         <command>property-assign</command>
474                                         <property>/sim/hitches/aerotow/open</property>
475                                         <value type="bool">true</value>
476                                 </binding>
477                         </key>
478                         <key n="111">
479                                 <name>o</name>
480                                 <desc>Lock aerotow hook</desc>
481                                 <binding>
482                                         <command>property-assign</command>
483                                         <property>/sim/hitches/aerotow/open</property>
484                                         <value type="bool">false</value>
485                                 </binding>
486                         </key>
487                         <key n="15">
488                                 <name>Ctrl-o</name>
489                                 <desc>Find aircraft for aerotow</desc>
490                                 <binding>
491                                         <command>property-assign</command>
492                                         <property>/controls/aerotow/find-aircraft</property>
493                                         <value type="bool">true</value>
494                                 </binding>
495                                 <mod-up>
496                                         <binding>
497                                                 <command>property-assign</command>
498                                                 <property>/controls/aerotow/find-aircraft</property>
499                                                 <value type="bool">false</value>
500                                         </binding>
501                                 </mod-up>
502                         </key>
503
504                 </keyboard>
505         </input>
506
507
508         <nasal>
509                 <ec135>
510                         <file>Aircraft/ec135/Models/ec135.nas</file>
511                         <file>Aircraft/ec135/Models/hsi.nas</file>
512                         <!--<file>Aircraft/ec135/Nasal/fcs.nas</file>-->
513                         <file>Aircraft/ec135/Nasal/fcs.nas</file>
514                         <file>Aircraft/ec135/Nasal/casdisable.nas</file>
515                 </ec135>
516         </nasal>
517
518
519         <rotors>
520                 <main>
521                         <rpm type="double">0</rpm>
522                 </main>
523         </rotors>
524
525 </PropertyList>