Major update: fixed fdm-bug (thanks to LesterBoffo!), added tutorials, added replayre...
[fg:toms-fgdata.git] / Aircraft / ec130 / ec130.xml
1 <!--
2  This file is part of FlightGear, the free flight simulator
3  http://www.flightgear.org/
4
5  Copyright (C) 2009 Heiko Schulz, Heiko.H.Schulz@gmx.net
6
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of the
10  License, or (at your option) any later version.
11
12  This program is distributed in the hope that it will be useful, but
13  WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  General Public License for more details.
16  
17  -->
18
19 <airplane mass="3015">
20
21 <!--not necessary for helis, but useful to prevent sliding on ground engine-out-->
22         <approach speed="75" aoa="16">
23                 <control-setting axis="/controls/engines/engine[0]/throttle" value="0.3"/>
24         </approach>
25
26         <cruise speed="100" alt="4">
27                 <control-setting axis="/controls/engines/engine[0]/throttle" value="0.5"/>
28         </cruise>
29
30
31
32         <rotor name="main" 
33        x="1.9" y="0.0" z="1.325" 
34        nx="0.035" ny="0" nz="1." 
35        fx="1" fy="0" fz="0" ccw="0"
36        maxcollective="16.0" mincollective="0.5"
37         mincyclicele="-7.3" maxcyclicele="9.9"
38        mincyclicail="-6.75" maxcyclicail="5.17"
39        diameter="10.69" numblades="3" 
40        weightperblade="66" 
41        twist="10.7" 
42        chord="0.30" 
43        rpm="386" 
44        relbladecenter="0.6" 
45        dynamic="0.65"
46        rellenflaphinge="0.05" 
47        delta3="0" delta="0.185" 
48        pitch-a="10" pitch-b="15" 
49        flapmin="-13" flapmax="13" 
50        flap0="-7.5" flap0factor="0" phi0="45"
51        notorque="0" dragfactor="0.30" 
52        translift-ve="20" 
53        translift-maxfactor="1.35" 
54        ground-effect-constant="0.1" 
55        taper="1"
56        number-of-segments="10" 
57        number-of-parts="10" 
58        rel-len-where-incidence-is-measured="0.5" 
59        rel-len-blade-start="0.15"
60     
61     
62     
63        airfoil-lift-coefficient="6.3" 
64        airfoil-drag-coefficient0="0.0070" 
65        airfoil-drag-coefficient1="0.10" 
66        incidence-stall-zero-speed="18" 
67        incidence-stall-half-sonic-speed="9" 
68        lift-factor-stall="0.18" 
69        drag-factor-stall="8.0" 
70        stall-change-over="5.5" 
71        cyclic-factor="1.0" 
72        rotor-correction-factor="0.9" 
73        downwashfactor ="0.8" 
74        
75       
76     
77                 >
78   
79                 <control-input axis="/controls/flight/aileron-trim" control="CYCLICAIL" split="true"/>
80                 <control-input axis="/controls/flight/aileron" control="CYCLICAIL"
81                                            src0="-1.0" src1="1.0"
82                                            dst0="-1" dst1="1"/>
83                 <control-input axis="/controls/flight/elevator-trim" control="CYCLICELE" split="true"/>
84                 <control-input axis="/controls/flight/elevator" control="CYCLICELE"
85                                            src0="-1.0" src1="1.0"
86                                            dst0="-1" dst1="1"/>
87                 <control-input axis="/controls/engines/engine[0]/throttle" control="COLLECTIVE"
88                                            src0="0.0" src1="1.0"
89                                            dst0="1.0" dst1="-1.0"/>
90         </rotor>
91
92
93         <rotor name="tail"  x="-4.4" y="-0.125" z="0.109" 
94         nx="0.00" ny="1" nz="-0.007" fx="1" fy="0" fz="0" ccw="0"
95           maxcollective="-8.5" mincollective="10.0"
96           diameter="1" numblades="10" weightperblade="1" relbladecenter="0.7"
97           dynamic="1" rpm="3568" rellenflaphinge="0.1" delta3="0" translift="0" delta="0.25"
98           pitch-a="10"
99           pitch-b="15"
100           airfoil-lift-coefficient="6.3"
101           airfoil-drag-coefficient0="0.0017"
102           airfoil-drag-coefficient1="0.10"
103           notorque="0"
104           taper="1"
105           chord="0.205"
106           number-of-segments="5"
107           number-of-parts="4"
108           rel-len-blade-start="0.4"
109           incidence-stall-zero-speed="18"
110           incidence-stall-half-sonic-speed="9"
111           lift-factor-stall="0.18"
112           stall-change-over="5.5"
113           drag-factor-stall="8"
114           rotor-correction-factor="0.8"
115 >
116                 >
117                 <control-input axis="/controls/flight/rudder" control="COLLECTIVE" invert="true"
118                                            src0="-1.0" src1="1.0"
119                                            dst0="-1.0" dst1="1.0"/>
120                 <control-input axis="/controls/engines/engine[1]/throttle" control="COLLECTIVE"
121                                            src0="0.0" src1="1.0"
122                                            dst0=".00000000000000000065" dst1=".00000000000000000065"/>
123         </rotor>
124
125
126         <rotorgear
127           max-power-engine="557"
128           max-power-rotor-brake="100"
129           rotorgear-friction="1.4"
130           engine-prop-factor="0.005"
131           engine-accel-limit="100"
132           yasimdragfactor="25"
133           yasimliftfactor="24"
134 >
135                 >
136                  <control-input axis="/controls/engines/engine[0]/magnetos" control="ROTORGEARENGINEON"/>
137   <control-input axis="/controls/rotor/brake" control="ROTORBRAKE"
138                  src0="0.0" src1="1.0"
139                  dst0="0.0" dst1="1.0"/>
140   <control-input axis="/controls/rotor/reltarget" control="ROTORRELTARGET"
141                  src0="0.0" src1="2.0"
142                  dst0="0.0" dst1="2.0"/>
143   <control-input axis="/controls/rotor/maxreltorque" control="ROTORENGINEMAXRELTORQUE"
144                  src0="0.0" src1="2.0"
145                  dst0="0.0" dst1="2.0"/>
146 </rotorgear>
147
148
149         <cockpit x="7.589" y="0.694" z="-0.570"/>
150
151         <!-- Fuse -->
152         <fuselage ax="5.35" ay="0" az="-0.553" 
153                   bx="0.285" by="0" bz="-0.365"
154                   cx="1.0" cy="1.0" cz="1.0" 
155                   width="2.0"   
156                   taper="0.4" 
157                   midpoint="0.45"/>
158         <!-- Tail -->
159         <fuselage ax="0.285" ay="0" az="-0.365"
160                   bx="-3.445" by="0" bz="-0.170"
161               cz="0.3" 
162                   width="0.8"   
163                   taper="0.4" 
164                   midpoint="0"/>
165
166
167         <hstab x="-2.95" y="0.16" z="-0.2" 
168                taper="1.0" 
169                effectiveness="2" 
170                length="1.2" 
171                chord="0.550"
172                sweep="0"
173                incidence="0">
174                <stall aoa="-27" width="0" peak="1.5"/>
175         </hstab>
176         
177
178         <vstab x="-4.066" y="0" z="0.251" 
179         taper=".7" 
180         length="1.84" 
181         chord="1.40" 
182         sweep="37" 
183         incidence="-7">
184                 <stall aoa="28" width="4" peak="1.5"/>
185         </vstab>
186 <!-- ballast -->
187         
188         
189         <ballast x="5.2" y="+0.0" z=" 0.0" mass="502.5"/>
190         <ballast x="-1.7" y="+0.0" z=" 0.0" mass="502.5"/>
191         
192         <ballast x="1.74" y="+0.6" z=" 0.0" mass="502.5"/>
193         <ballast x="1.74" y="-0.6" z=" 0.0" mass="502.5"/>
194         
195         <ballast x="1.74" y="+0.0" z=" 1.95" mass="502.5"/>
196         <ballast x="1.74" y="+0.0" z=" -1.95" mass="502.5"/>
197         
198         <ballast x="1.24" y="+0.0" z=" 0.0" mass="300"/>
199         
200
201
202         <weight x="3.674" y=".676" z="-.681" mass-prop="/sim/weight[0]/weight-lb"/>
203         <!-- pilot -->
204         <weight x="3.674" y="-.064" z="-.681" mass-prop="/sim/weight[1]/weight-lb"/>
205         <!-- co-pilot -->
206         <weight x="3.674" y="-.559" z="-.681" mass-prop="/sim/weight[2]/weight-lb"/>
207         <!-- right front passenger -->
208         <weight x="2.755" y="-.707" z="-.681" mass-prop="/sim/weight[3]/weight-lb"/>
209         <!-- right rear passenger -->
210         <weight x="2.755" y="-.259" z="-.681" mass-prop="/sim/weight[4]/weight-lb"/>
211         <!-- middle rear passenger -->
212         <weight x="2.755" y=".232" z="-.681" mass-prop="/sim/weight[5]/weight-lb"/>
213         <!-- middle rear passenger -->
214         <weight x="2.755" y=".699" z="-.681" mass-prop="/sim/weight[6]/weight-lb"/>
215         <!-- left rear passenger -->
216         <weight x="1.9" y="0" z="-0.667" mass-prop="/sim/weight[7]/weight-lb"/>
217         <!-- cargo  -->
218         
219 <!--weight by the additional things like emergency floats, skibox, FLIR...-->
220 <weight x="4.435" y="-1.094"   z="-1.186" size="0.5" mass-prop="/sim/model/ec130/external/FLIR/weight-lb"/><!--R-->
221 <weight x="2.174" y="-1.427"  z="-1.127" size="0.3" mass-prop="/sim/model/ec130/external/searchlight/weight-lb"/><!--L-->
222 <weight x="2.047" y="-1.411" z="-1.176" size="0.3" mass-prop="/sim/model/ec130/external/basket_right/weight-lb"/><!--OR-->
223 <weight x="2.047" y="1.411"  z="-1.176" size="0.3" mass-prop="/sim/model/ec130/external/basket_left/weight-lb"/><!--OL-->
224 <weight x="2.213" y="-1.245" z="-1.626" size="0.1" mass-prop="/sim/model/ec130/external/float_deflated_right/weight-lb"/><!--MR-->
225 <weight x="2.213" y="1.245"  z="-1.626" size="0.1" mass-prop="/sim/model/ec130/external/float_deflated_left/weight-lb"/><!--ML-->
226 <weight x="2.213" y="-1.401" z="-1.362"  size="0.7" mass-prop="/sim/model/ec130/external/float_inflated_right/weight-lb"/><!--IR-->
227 <weight x="2.213" y="1.401"  z="-1.362"  size="0.7" mass-prop="/sim/model/ec130/external/float_inflated_left/weight-lb"/><!--IL-->
228
229  
230 <!-- left skid -->
231 <gear x="3.325" y="+1.22" z="-1.770" skid="1" compression="0.1" spring="0.5"  sfric="0.5" dfric="0.4"/>
232 <gear x="1.082" y="+1.22" z="-1.770" skid="1" compression="0.1" spring="0.5"  sfric="0.5" dfric="0.4"/>
233
234
235 <!-- right skid -->
236 <gear x="3.325" y="-1.22" z="-1.770" skid="1" compression="0.1" spring="0.5"  sfric="0.5" dfric="0.4"/>
237 <gear x="1.082" y="-1.22" z="-1.770" skid="1" compression="0.1" spring="0.5"  sfric="0.5" dfric="0.4"/>
238 <!-- tail skid -->
239 <gear x="-4.252" y="+0.00" z="-1.034" skid="1" compression="0.25" spring="0.15" damp="3" sfric="1" dfric="1"/>
240
241 <!--left float-->
242 <gear x="4.1" y="+1.474" z="-1.470"  compression="0.4" spring="1" sfric="0.8" dfric="0.7" 
243 on-water="1" on-solid="0" ignored-by-solver="1" reduce-friction-by-extension="1.0"  speed-planing="25" spring-factor-not-planing="0.7">
244   <control-input axis="/controls/gear/floats-inflat" control="EXTEND"/>
245   <control-output control="EXTEND" prop="/gear/gear[5]/position-norm"/>
246  <control-speed control="EXTEND" transition-time="0.25"/>
247   </gear>
248   
249 <gear x="0.148" y="+1.474" z="-1.470"  compression="0.4" spring="1" sfric="0.8" dfric="0.7" 
250 on-water="1" on-solid="0" ignored-by-solver="1" reduce-friction-by-extension="1.0"  speed-planing="25" spring-factor-not-planing="0.7">
251   <control-input axis="/controls/gear/floats-inflat" control="EXTEND"/>
252   <control-output control="EXTEND" prop="/gear/gear[6]/position-norm"/>
253  <control-speed control="EXTEND" transition-time="0.25"/>
254   </gear>
255   
256 <!--right float-->
257 <gear x="4.1" y="-1.474" z="-1.470"  compression="0.4" spring="1" sfric="0.8" dfric="0.7" 
258 on-water="1" on-solid="0" ignored-by-solver="1" reduce-friction-by-extension="1.0"  speed-planing="25" spring-factor-not-planing="0.7">
259   <control-input axis="/controls/gear/floats-inflat" control="EXTEND"/>
260   <control-output control="EXTEND" prop="/gear/gear[7]/position-norm"/>
261  <control-speed control="EXTEND" transition-time="0.25"/>
262   </gear>
263  
264 <gear x="0.148" y="-1.474" z="-1.470"  compression="0.4" spring="1" sfric="0.8" dfric="0.7" 
265 on-water="1" on-solid="0" ignored-by-solver="1" reduce-friction-by-extension="1.0"  speed-planing="25" spring-factor-not-planing="0.7">
266  <control-input axis="/controls/gear/floats-inflat" control="EXTEND"/>
267  <control-output control="EXTEND" prop="/gear/gear[8]/position-norm"/>
268  <control-speed control="EXTEND" transition-time="0.25"/>
269  </gear>
270         
271         <tank x="1.90" y="0.0" z="-.03" capacity="941"/><!-- 538.7l -->
272         
273 <thruster x="-1.9" y="0.0" z="1.3" vx="1" vy="0" vz="0" thrust="2000">
274   <control-input axis="/rotors/main/vibration/longitudinal" src0="-1" src1="1" dst0="-1" dst1="1" control="THROTTLE"/>
275 </thruster>
276
277 <thruster x="-1.9" y="0.0" z="1.3" vx="0" vy="1" vz="0" thrust="2000">
278   <control-input axis="/rotors/main/vibration/lateral" src0="-1" src1="1" dst0="-1" dst1="1" control="THROTTLE"/>
279 </thruster>     
280
281 </airplane>