1<?xml version="1.0"?>
2<PropertyList>
3  <sim>
4    <description>Aermacchi MB-339PAN</description>
5    <aircraft-version>2.1</aircraft-version>
6    <status>production</status>
7    <author>HCI Lab - University of Udine</author>
8    <startup>
9	  <splash-title>Aermacchi MB-339PAN</splash-title>
10      <splash-texture>Aircraft/mb339pan/splash.png</splash-texture>
11    </startup>
12    <view n="0">
13      <internal archive="y">true</internal>
14      <config>
15        <y-offset-m archive="y">0.88</y-offset-m>
16        <z-offset-m archive="y">-2.52</z-offset-m>
17        <pitch-offset-deg>-6</pitch-offset-deg>
18        <default-field-of-view-deg>60.0</default-field-of-view-deg>
19      </config>
20    </view>
21    <view>
22      <name>Back Seat View</name>
23      <type>lookfrom</type>
24      <internal>true</internal>
25      <config>
26        <from-model>true</from-model>
27        <from-model-idx>0</from-model-idx>
28        <x-offset-m type="double">0</x-offset-m>
29        <y-offset-m type="double">1.3</y-offset-m>
30        <z-offset-m type="double">-1</z-offset-m>
31        <pitch-offset-deg>-6</pitch-offset-deg>
32        <default-field-of-view-deg>60.0</default-field-of-view-deg>
33      </config>
34    </view>
35    <view>
36      <name>Top</name>
37      <type>lookfrom</type>
38      <internal>true</internal>
39      <config>
40        <from-model>true</from-model>
41        <from-model-idx>0</from-model-idx>
42        <x-offset-m type="double">0</x-offset-m>
43        <y-offset-m type="double">3.3</y-offset-m>
44        <z-offset-m type="double">4.2</z-offset-m>
45        <pitch-offset-deg>-15</pitch-offset-deg>
46        <default-field-of-view-deg>60.0</default-field-of-view-deg>
47      </config>
48    </view>
49    <view>
50      <name>Bottom</name>
51      <type>lookfrom</type>
52      <internal>true</internal>
53      <config>
54        <from-model>true</from-model>
55        <from-model-idx>0</from-model-idx>
56        <x-offset-m type="double">0</x-offset-m>
57        <y-offset-m type="double">-0.4</y-offset-m>
58        <z-offset-m type="double">5.5</z-offset-m>
59        <pitch-offset-deg>+15</pitch-offset-deg>
60        <default-field-of-view-deg>60.0</default-field-of-view-deg>
61      </config>
62    </view>
63    <flight-model>jsb</flight-model>
64    <aero>mb339pan</aero>
65    <instrumentation>
66      <path>Aircraft/mb339pan/systems/mb339pan-instrumentation.xml</path>
67    </instrumentation>
68    <systems>
69      <electrical>
70        <path>Aircraft/mb339pan/systems/mb339pan-electrical.xml</path>
71      </electrical>
72      <autopilot>
73        <path>Aircraft/mb339pan/systems/mb339pan-autopilot.xml</path>
74      </autopilot>
75      <path>Aircraft/mb339pan/systems/mb339pan-systems.xml</path>
76    </systems>
77    <model>
78      <path>Aircraft/mb339pan/models/mb339pan.xml</path>
79    </model>
80    <sound>
81      <audible>true</audible>
82      <path>Aircraft/mb339pan/sounds/mb339pan-sound.xml</path>
83    </sound>
84    <chase-distance-m archive="y">-35.0</chase-distance-m>
85    <multiplay>
86      <generic>
87        <int n="0" alias="/smoke/active"/>
88        <float n="0" alias="/smoke/red"/>
89        <float n="1" alias="/smoke/green"/>
90        <float n="2" alias="/smoke/blue"/>
91      </generic>
92    </multiplay>
93  </sim>
94  <engines>
95    <engine n="0">
96      <running>true</running>
97    </engine>
98  </engines>
99  <consumables>
100    <fuel>
101      <tank n="0">
102        <level-lbs>1100.0</level-lbs>
103		    <level-kg>0.0</level-kg>
104      </tank>
105      <tank n="1">
106        <level-lb>420.0</level-lb>
107		    <level-kg>0.0</level-kg>
108      </tank>
109      <tank n="2">
110        <level-lb>420.0</level-lb>
111		    <level-kg>0.0</level-kg>
112      </tank>
113      <total-fuel-kg>0.0</total-fuel-kg>
114      <tank-sel>0</tank-sel>
115    </fuel>
116  </consumables>
117  <controls>
118    <flight>
119      <speedbrake-move>0</speedbrake-move>
120      <speedbrake_old_pos>0</speedbrake_old_pos>
121      <elevator-trim>0</elevator-trim>
122      <aileron-trim>0</aileron-trim>
123      <rudder-trim>0</rudder-trim>
124    </flight>
125  </controls>
126  <!-- smoke -->
127  <smoke>
128    <active type="int">0</active>
129    <particlepersec>50</particlepersec>
130    <color>white</color>
131    <red type="float">1.0</red>
132    <green type="float">1.0</green>
133    <blue type="float">1.0</blue>
134  </smoke>
135  <verbose>
136    <popUp>0</popUp>
137  </verbose>
138  <!-- map keyboard input -->
139  <input>
140    <keyboard>
141      <!-- keys for moving the elevator trim -->
142      <!-- decrease -->
143      <key n="50">
144        <name>2</name>
145        <desc>Decrease elevator trim.</desc>
146        <binding>
147          <command>property-adjust</command>
148          <property>/controls/flight/elevator-trim</property>
149          <step>-0.001</step>
150        </binding>
151      </key>
152      <!-- increase -->
153      <key n="56">
154        <name>8</name>
155        <desc>Increase elevator trim.</desc>
156        <binding>
157          <command>property-adjust</command>
158          <property>/controls/flight/elevator-trim</property>
159          <step>0.001</step>
160        </binding>
161      </key>
162      <!-- keys for moving the ailerons trim -->
163      <!-- decrease -->
164      <key n="55">
165        <name>7</name>
166        <desc>Decrease aileron trim.</desc>
167        <binding>
168          <command>property-adjust</command>
169          <property>/controls/flight/aileron-trim</property>
170          <step>-0.001</step>
171        </binding>
172      </key>
173      <!-- increase -->
174      <key n="57">
175        <name>9</name>
176        <desc>Increase aileron trim.</desc>
177        <binding>
178          <command>property-adjust</command>
179          <property>/controls/flight/aileron-trim</property>
180          <step>0.001</step>
181        </binding>
182      </key>
183      <!-- keys for moving the flaps over two steps -->
184      <!-- extend -->
185      <key n="52">
186        <name>4</name>
187        <desc>Decrease flaps.</desc>
188        <binding>
189          <command>property-adjust</command>
190          <property>/controls/flight/flaps</property>
191          <step>-0.5</step>
192        </binding>
193      </key>
194      <!-- retract -->
195      <key n="54">
196        <name>6</name>
197        <desc>Increase flaps.</desc>
198        <binding>
199          <command>property-adjust</command>
200          <property>/controls/flight/flaps</property>
201          <step>0.5</step>
202        </binding>
203      </key>
204      <!-- keys for moving the speedbrake by steps -->
205      <!-- extend -->
206      <key n="51">
207        <name>3</name>
208        <desc>Extends the speedbrake.</desc>
209        <repeatable>true</repeatable>
210        <binding>
211          <command>nasal</command>
212          <script>mb339pan.incSpeedBrake(0.005)</script>
213        </binding>
214      </key>
215      <!-- retract -->
216      <key n="49">
217        <name>1</name>
218        <desc>Retracts the speedbrake.</desc>
219        <repeatable>true</repeatable>
220        <binding>
221          <command>nasal</command>
222          <script>mb339pan.incSpeedBrake(-0.005)</script>
223        </binding>
224      </key>
225      <!-- toggle throught the fuel indicators -->
226      <key n="46">
227        <name>.</name>
228        <desc>Change the current tank</desc>
229        <binding>
230          <command>nasal</command>
231          <script>mb339pan.ToggleTank(1)</script>
232        </binding>
233      </key>
234      <!-- toggle smoke -->
235      <key n="106">
236        <name>j</name>
237        <desc>Toggle smoke</desc>
238        <binding>
239          <command>nasal</command>
240          <script>mb339pan.SmokeToggle()</script>
241        </binding>
242      </key>
243      <!-- Modify smoke particle per second -->
244      <key n="108">
245        <name>l</name>
246        <desc>Decrease smoke</desc>
247        <binding>
248          <command>nasal</command>
249          <script>mb339pan.SmokeCounter(-1)</script>
250        </binding>
251      </key>
252      <key n="76">
253        <name>L</name>
254        <desc>Increase smoke</desc>
255        <binding>
256          <command>nasal</command>
257          <script>mb339pan.SmokeCounter(1)</script>
258        </binding>
259      </key>
260      <!-- select smoke color (green,white,red) -->
261      <key n="107">
262        <name>k</name>
263        <desc>Select smoke color</desc>
264        <binding>
265          <command>nasal</command>
266          <script>mb339pan.SmokeColor()</script>
267        </binding>
268      </key>
269
270    </keyboard>
271  </input>
272  <!-- loads definitions of functions -->
273  <nasal>
274    <mb339pan>
275      <file>Aircraft/mb339pan/nasal/mb339pan.nas</file>
276    </mb339pan>
277  </nasal>
278</PropertyList>
279