Major update: fixed fdm-bug (thanks to LesterBoffo!), added tutorials, added replayre...
[fg:toms-fgdata.git] / Aircraft / ec130 / ec130-set.xml
1 <?xml version="1.0"?>
2 <!--
3 ************************************************************************
4 EC 130 simulation config.
5
6 ************************************************************************
7
8  This file is part of FlightGear, the free flight simulator
9  http://www.flightgear.org/
10
11  Copyright (C) 2009 Heiko Schulz, Heiko.H.Schulz@gmx.net
12
13  This program is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License as
15  published by the Free Software Foundation; either version 2 of the
16  License, or (at your option) any later version.
17
18  This program is distributed in the hope that it will be useful, but
19  WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  General Public License for more details.
22 -->
23
24 <PropertyList>
25         <sim>
26                 <description>Eurocopter EC130</description>
27                 <author>Heiko Schulz, Melchior Franz (Nasal)</author>
28                 <status>beta</status>
29                 <license>GPL v2</license>
30                 <aircraft-version>1</aircraft-version>
31
32                 <flight-model>yasim</flight-model>
33                 <aero>ec130</aero>
34                  <fuel-fraction type="double">0.2</fuel-fraction>
35
36                 <!--<startup>
37                         <splash-texture>Aircraft/ec130/splash.rgb</splash-texture>
38                 </startup>-->
39
40                 <sound>
41                         <path>Aircraft/ec135/Sounds/sound.xml</path>
42                 </sound>
43  
44 <airport>
45         <runways>
46             <start-offset-m>-0.95</start-offset-m>
47         </runways>
48 </airport>
49                 <model>
50                         <path archive="y">Aircraft/ec130/Models/ec130.xml</path>
51                         <variant type="int">0</variant>
52                         <livery>
53                               <file type="string">FlightGear</file>
54                               </livery>
55                         <ec130>
56                                 <state type="int">0</state>
57                                 <rotor-step-deg type="float">-1.0</rotor-step-deg>
58                                 <emerg_floats>false</emerg_floats>
59                                 <basket_left>false</basket_left>
60                                 <basket_right>false</basket_right>
61                                 <mirror>false</mirror>
62                                 <FLIR>false</FLIR>
63                                 <searchlight>false</searchlight>
64                                 <wirecutter>false</wirecutter>
65                                 <hide-gsdi>true</hide-gsdi>
66                         </ec130>
67                 </model>
68   <rendering>
69     <refl_correction type="string">-0.1</refl_correction>
70     </rendering>
71 <systems>
72  <path>Aircraft/ec130/Systems/systems.xml</path>
73  <autopilot>
74  <path>Aircraft/ec130/filter.xml</path>
75  </autopilot>
76             <electrical>
77                 <path></path>
78             </electrical>
79 </systems>
80 <instrumentation>
81 <path>Aircraft/ec130/Systems/instruments.xml</path>
82 </instrumentation>
83
84                 
85
86
87                 <!--view-->
88                 <chase-distance-m type="double" archive="y">-20.0</chase-distance-m>
89
90   
91
92   <view n="0">
93   <internal type="bool">true</internal>
94     <config>
95       <x-offset-m archive="y">  -0.67 </x-offset-m> <!--right-->
96       <y-offset-m archive="y">  0.03</y-offset-m> <!--up-->
97       <z-offset-m archive="y"> -3.93 </z-offset-m> <!--back-->
98       <pitch-offset-deg>-15</pitch-offset-deg>
99       <default-field-of-view-deg>55.0</default-field-of-view-deg>
100       <dynamic-view type="bool">true</dynamic-view>
101     </config>
102   </view>
103   
104   
105   
106   <view n="101">
107     <name>Passanger Seat View</name>
108   <internal type="bool">true</internal>
109     <type>lookfrom</type>
110     <config>
111    <from-model type="bool">true</from-model>
112                         <from-model-idx type="int">0</from-model-idx>
113       <ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
114       <x-offset-m archive="y"> 0.00 </x-offset-m> 
115       <y-offset-m archive="y">  0.40 </y-offset-m> 
116       <z-offset-m archive="y"> -3.81 </z-offset-m> 
117       <pitch-offset-deg>-15</pitch-offset-deg>
118        <heading-offset-deg>65</heading-offset-deg>
119       <default-field-of-view-deg>71</default-field-of-view-deg>
120       <dynamic-view type="bool">true</dynamic-view>
121     </config>
122   </view>
123   
124   <view n="102">
125     <name>Passanger Seat View back</name>
126  <internal type="bool">true</internal>
127     <type>lookfrom</type>
128     <config>
129      <from-model type="bool">true</from-model>
130 <from-model-idx type="int">0</from-model-idx>
131       <ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
132       <x-offset-m archive="y"> 0.29 </x-offset-m> <!--right-->
133       <y-offset-m archive="y">  0.4 </y-offset-m> <!--up-->
134       <z-offset-m archive="y"> -2.75 </z-offset-m> <!--back-->
135       <pitch-offset-deg>-15</pitch-offset-deg>
136       <heading-offset-deg>45</heading-offset-deg>
137       <default-field-of-view-deg>71</default-field-of-view-deg>
138       <dynamic-view type="bool">true</dynamic-view>
139     </config>
140   </view>
141
142   <view n="103">
143     <name>Tail Camera View</name>
144     <type>lookfrom</type>
145     <internal archive="y">true</internal>
146     <config>
147       <from-model type="bool">true</from-model>
148       <from-model-idx type="int">0</from-model-idx>
149       <ground-level-nearplane-m type="double">0.01f</ground-level-nearplane-m>
150       <default-field-of-view-deg type="double">30</default-field-of-view-deg>
151       <pitch-offset-deg>-5</pitch-offset-deg>
152       <x-offset-m archive="y"> 0.000 </x-offset-m> <!--Right-->
153       <y-offset-m archive="y"> 2.000 </y-offset-m> <!--Up-->
154       <z-offset-m archive="y"> 9.227 </z-offset-m> <!--Back-->
155     </config>
156   </view>
157
158
159
160                 <weight n="0">
161       <name>Pilot</name>
162       <weight-lb>180</weight-lb>
163       <max-lb>300</max-lb>
164     </weight>
165
166     <weight n="1">
167       <name>Co-Pilot</name>
168       <weight-lb>0</weight-lb>
169       <max-lb>300</max-lb>
170     </weight>
171
172     <weight n="2">
173       <name>Right Front Passenger</name>
174       <weight-lb>0</weight-lb>
175       <max-lb>300</max-lb>
176     </weight>
177
178     <weight n="3">
179       <name>Right Rear Passenger</name>
180       <weight-lb>0</weight-lb>
181       <max-lb>300</max-lb>
182     </weight>
183
184     <weight n="4">
185       <name>Middle Passenger</name>
186       <weight-lb>0</weight-lb>
187       <max-lb>300</max-lb>
188     </weight>
189     
190      <weight n="5">
191       <name>Middle Passenger</name>
192       <weight-lb>0</weight-lb>
193       <max-lb>300</max-lb>
194     </weight>
195
196     <weight n="6">
197       <name>Left Rear Passenger</name>
198       <weight-lb>0</weight-lb>
199       <max-lb>300</max-lb>
200     </weight>
201
202     <weight n="7">
203       <name>Load</name>
204       <weight-lb>0</weight-lb>
205       <max-lb>800</max-lb>
206     </weight>
207     
208     <multiplay>
209         <generic>
210            <int n="0" alias="/systems/electrical/outputs/beacon"/>
211            
212         <int n="1" alias="/systems/electrical/outputs/landing-light"/>
213                         
214         <int n="2" alias="/systems/electrical/outputs/nav-lights"/>
215                      
216         <float n="0" alias="/gear/gear[6]/position-norm"/>
217                       
218             <string  alias="/sim/multiplay/callsign"/>
219         </generic>
220     </multiplay>
221     
222     <flight-recorder include="Systems/flight-recorder.xml"/>
223
224                 <help>
225                         <title>EC 130 - help</title>
226                         <line></line>
227                         
228                         <line>Help</line>
229                         
230                         <line>For startup read the flightmanual under Aircraft/ec130/flightmanual.text</line>
231                         
232                 </help>
233
234
235         <tutorials include="Tutorials/ec130_tutorials.xml"/>
236
237                 
238                 <menubar>
239                         <default>
240                                 <menu n="10">
241                                         <label>EC130</label>
242                                         <enabled type="bool">true</enabled>
243                                         
244                                 <item>
245                                                 <label>Show/hide GSDI</label>
246                                                 <binding>
247                                                         <command>property-toggle</command>
248                                                         <property>/sim/model/hide-gsdi</property>
249                                                 </binding>
250                                 </item>
251                                 <item>
252                                 <label>Supply External Power</label>
253                         <binding>
254                                 <command>property-toggle</command>
255                                 <property>/controls/electric/external-power</property>
256                         </binding>
257                                 </item>
258                                   <item>
259                                        <label>Select Livery</label>
260                                       <binding>
261                                      <command>nasal</command>
262                                      <script>aircraft.livery.dialog.toggle()</script>
263                                       </binding>
264                                         </item>
265                                 <item>
266                                          <label>Repack Emerg Floats (only on ground)</label>
267                                          <binding>
268                                          <command>property-assign</command>
269                                          <property>/controls/gear/floats-inflat</property>
270                                          <value>false</value>
271                                          <condition>
272                                                 <property>gear/gear[0]/wow</property>
273                                         </condition>
274                                          </binding>
275                                 </item>
276                                 </menu>
277                         </default>
278                 </menubar>
279                 
280                 
281                 
282 </sim>
283
284
285
286 <limits>
287 <vne>155</vne>
288 <MTOW>5350</MTOW>
289 </limits>
290
291 <consumables>
292                 <fuel>
293                         <tank>
294                                 <name>Main</name>
295                                 <selected type="bool" write="n">1</selected>
296                                 <density-ppg type="double" write="n">6.682</density-ppg>
297                         </tank>
298
299                         
300                 </fuel>
301         </consumables>
302
303         <controls>
304         <!--cold and dark as we all like it!-->
305         <gear>
306         <floats-inflat type ="bool">false</floats-inflat>
307         <floats-armed type ="bool">false</floats-armed>
308         <floats-deflate type = "bool">false</floats-deflate>
309          </gear>
310         <rotor>
311                             <brake type ="double">1</brake>
312                         <reltarget type="double">0</reltarget>
313                         <maxreltorque type="double">0</maxreltorque>
314                 </rotor>
315         
316                 <engines>
317                         <engine n="0">
318                                 <magnetos>1</magnetos>
319                                 <propeller-pitch alias="/controls/engines/power-trim"/>
320                                 <mixture alias="/controls/engines/power-balance"/>
321                                 <startselector type="bool">0</startselector>
322                                 <switchguard type="bool">0</switchguard>
323                         </engine>
324                         <engine n="1">
325                                 <magnetos>1</magnetos>
326                                 <propeller-pitch alias="/controls/engines/power-trim"/>
327                                 <mixture alias="/controls/engines/power-balance"/>
328                                 <throttle alias="/controls/engines/engine[0]/throttle"/>
329                         </engine>
330                         <power-trim type="double">0</power-trim>
331                         <power-balance type="double">0</power-balance>
332         </engines>
333
334
335                 <lighting>
336                         <beacon type="bool">false</beacon>
337                         <nav-lights type="bool">false</nav-lights>
338                 </lighting>
339                 
340         </controls>
341
342
343         <instrumentation>
344           <kcs55 include="Systems/kcs55.xml"/>
345                         <gsdi>
346                         <serviceable type="bool">true</serviceable>
347                 </gsdi>
348         <attitude-indicator>
349         <serviceable type="bool">false</serviceable>
350         </attitude-indicator>
351         </instrumentation>
352
353         <input>
354                 <keyboard>
355
356                         <!-- Livery Box -->
357                         <!--<key n="79">
358                                 <name>O</name>
359                                 <desc>start timer</desc>
360                                 <binding>
361                                 <command>nasal</command>
362                                 <script>ec130.begin()</script>
363                         </binding>
364                         </key>-->
365   
366
367                         <key n="78">
368                                 <name>N</name>
369                                 <desc>Toggle rotor brake</desc>
370                                 <binding>
371                                         <command>nasal</command>
372                                         <script>
373                                                 var p = "/controls/rotor/brake";
374                                                 setprop(p, !getprop(p));
375                                         </script>
376                                 </binding>
377                         </key>
378
379                         <key n="110">
380                                 <name>n</name>
381                                 <desc>Apply rotor brake</desc>
382                                 <binding>
383                                         <command>nasal</command>
384                                         <script>interpolate("/controls/rotor/brake", 1.0, 2)</script>
385                                 </binding>
386                                 <mod-up>
387                                         <binding>
388                                                 <command>nasal</command>
389                                                 <script>interpolate("/controls/rotor/brake", 0.0, 2)</script>
390                                         </binding>
391                                 </mod-up>
392                         </key>
393                         
394                                <key n="102">
395                                 <name>f</name>
396                                 <desc>Force Trim Release</desc>
397                                 <binding>
398                                         <command>nasal</command>
399                                         <script>ec130.ftr_start()</script>
400                                 </binding>
401                                 <mod-up>
402                                         <binding>
403                                                 <command>nasal</command>
404                                                 <script>ec130.ftr_stop()</script>
405                                         </binding>
406                                 </mod-up>
407                         </key>
408                         
409                         <key n="101">
410                                 <name>e</name>
411                                 <desc>Emerg_Floats</desc>
412                                 <binding>
413                                         <command>property-assign</command>
414                                          <property>/controls/gear/floats-inflat</property>
415                                         <value>true</value>
416                                         <condition>
417                                                 <property>/controls/gear/floats-armed</property>
418                                         </condition>
419                                 </binding>
420                         </key>
421                         
422                         <key n="108">
423                                 <name>l</name>
424                                 <desc>Landing Light</desc>
425                                 <binding>
426                                         <command>property-toggle</command>
427                                          <property>controls/lighting/landing-lights</property>
428                                 </binding>
429                         </key>
430
431                         <!--<key n="123">
432                                 <name>{</name>
433                                 <desc>Shutdown Engines</desc>
434                                 <binding>
435                                         <command>nasal</command>
436                                         <script>ec130.shutdown()</script>
437                                         <condition>
438                                                 <property>/sim/signals/fdm-initialized</property>
439                                         </condition>
440                                 </binding>
441 </key>
442
443                         <key n="125">
444                                 <name>}</name>
445                                 <desc>Start Engines</desc>
446                                 <binding>
447                                         <command>nasal</command>
448                                         <script>ec130.startup()</script>
449                                         <condition>
450                                                 <property>/sim/signals/fdm-initialized</property>
451                                         </condition>
452                                 </binding>
453 </key>-->
454
455                         
456
457                 </keyboard>
458         </input>
459
460
461         <nasal>
462                 <ec130>
463                            <file>Aircraft/ec130/Nasal/test.nas</file>
464                          <file>Aircraft/ec130/Nasal/mousehandlery.nas</file>    
465                         <file>Aircraft/ec130/Nasal/mousehandlerx.nas</file>
466                            <file>Aircraft/ec130/Nasal/savestate.nas</file>
467                         <file>Aircraft/ec130/Nasal/externalweights.nas</file>
468                         <file>Aircraft/ec130/Nasal/ec130.nas</file>
469                         <file>Aircraft/ec130/Nasal/limits.nas</file>
470                         <file>Aircraft/ec130/Nasal/flightcontrols.nas</file>
471                         <file>Aircraft/ec130/Nasal/Electrical.nas</file>
472                         <file>Aircraft/ec130/Nasal/fadec.nas</file>
473                         <file>Aircraft/ec130/Systems/kcs55.nas</file>
474                         <file>Aircraft/ec130/Nasal/systems.nas</file>
475                         <file>Aircraft/ec130/Nasal/rotorloads.nas</file>
476                         <file>Aircraft/ec130/Models/Instruments/VEMD/timer.nas</file>
477                         <file>Aircraft/ec130/Models/Instruments/VEMD/VEMD.nas</file>
478                         <file>Aircraft/ec130/Models/Instruments/VEMD/roc.nas</file>
479                          <file>Aircraft/ec130/Models/Instruments/CWS/CWS.nas</file>
480                            <script><![CDATA[
481               KCS55.new();
482             ]]></script>
483                 </ec130>
484         </nasal>
485
486
487         <rotors>
488                 <main>
489                         <rpm type="double">0</rpm>
490                 </main>
491         </rotors>
492
493 </PropertyList>