Merge branch 'work'
[fg:toms-fgdata.git] / Aircraft / airwaveXtreme150 / airwaveXtreme150-JSBSim-set.xml
1 <?xml version="1.0"?> 
2 <!--
3 ************************************************************************
4 Hang glider simulation config.  This file ties together all the
5 components used by FGFS to represent a generic hang glider.
6 Components include the flight data model, instrument panel, and
7 external model.
8
9 Flight model details: 
10 Aircraft/UIUC/airwaveXtreme150-v1-nl/README.airwaveXtreme150.html
11
12 External model details:  
13 Aircraft/airwaveXtreme150/Models/uiuc/hgldr-cs/README.TXT 
14 (courtesy of Captain Slug, captainslg@aol.com)
15
16 Last update: Nov 8, 2002 Michael Selig, m-selig@uiuc.edu
17              Feb 18, 2012 D-NXKT, D_NXKT@yahoo.de
18              June 10, 2012 D-NXKT, D_NXKT@yahoo.de
19 ************************************************************************
20 -->
21
22 <PropertyList>
23
24  <sim>
25
26   <description>Airwave Xtreme 150 hang glider (JSBSim)</description>
27
28   <author>Michael Selig, Captain Slug, D-NXKT</author>
29   <aircraft-version>June 2012</aircraft-version>
30   <flight-model>jsb</flight-model>
31   <aero>Models/JSBSim/airwaveXtreme150-JSBSim</aero>
32   
33   <startup>
34     <splash-texture>Aircraft/airwaveXtreme150/splash.png</splash-texture>
35     <splash-title>Airwave Xtreme 150</splash-title>
36   </startup>
37
38   <sound>
39    <path>Aircraft/airwaveXtreme150/Sounds/airwaveXtreme150-sound-JSBSim.xml</path>
40   </sound>
41
42   <panel>
43    <!-- generic panel imperial units -->
44    <path>Aircraft/airwaveXtreme150/Panels/generic-panel-imperial-units.xml</path>   
45    <visibility>false</visibility>
46   </panel>
47
48   <panel_2>
49    <!-- generic panel metric units -->
50    <path>Aircraft/airwaveXtreme150/Panels/generic-panel-metric-units.xml</path>
51    <visibility>false</visibility>
52   </panel_2>
53
54   <model>
55    <path>Aircraft/airwaveXtreme150/Models/JSBSim/hgldr-cs-model.xml</path>
56    
57    <livery>
58     <file type="string"/>
59    </livery>
60
61    <airwaveXtreme150>
62     <material>
63
64      <LeadingEdge>
65       <!-- rgb 0.034118 0.65 0.246706 amb 0.034118 0.65 0.246706 emis 0 0 0 spec 1 1 1 shi 32 trans 0  -->
66       <diffuse>
67        <red>0.034118</red>
68        <green>0.65</green>
69        <blue>0.246706</blue>
70       </diffuse>
71       <ambient>
72        <red alias="/sim/model/airwaveXtreme150/material/LeadingEdge/diffuse/red"/>
73        <green alias="/sim/model/airwaveXtreme150/material/LeadingEdge/diffuse/green"/>
74        <blue alias="/sim/model/airwaveXtreme150/material/LeadingEdge/diffuse/blue"/>       
75       </ambient>
76       <transparency>
77        <alpha>1.0</alpha>
78       </transparency>
79      </LeadingEdge>
80
81      <SailUpper>
82       <!-- rgb 0.949968 0.949968 0.949968 amb 0.949968 0.949968 0.949968 emis 0 0 0 spec 1 1 1 shi 32 trans 0.05  -->
83       <diffuse>
84        <red>0.949968</red>
85        <green>0.949968</green>
86        <blue>0.949968</blue>
87       </diffuse>
88       <ambient>
89        <red alias="/sim/model/airwaveXtreme150/material/SailUpper/diffuse/red"/>
90        <green alias="/sim/model/airwaveXtreme150/material/SailUpper/diffuse/green"/>
91        <blue alias="/sim/model/airwaveXtreme150/material/SailUpper/diffuse/blue"/>       
92       </ambient>
93       <transparency>
94        <alpha>0.95</alpha>
95       </transparency>
96      </SailUpper>
97
98      <TrailingEdge>
99       <!-- rgb 0.949968 0.949968 0.949968 amb 0.949968 0.949968 0.949968 emis 0 0 0 spec 1 1 1 shi 32 trans 0.05  -->
100       <diffuse>
101        <red>0.949968</red>
102        <green>0.949968</green>
103        <blue>0.949968</blue>
104       </diffuse>
105       <ambient>
106        <red alias="/sim/model/airwaveXtreme150/material/TrailingEdge/diffuse/red"/>
107        <green alias="/sim/model/airwaveXtreme150/material/TrailingEdge/diffuse/green"/>
108        <blue alias="/sim/model/airwaveXtreme150/material/TrailingEdge/diffuse/blue"/>       
109       </ambient>
110       <transparency>
111        <alpha>0.95</alpha>
112       </transparency>
113      </TrailingEdge>
114
115      <SailLower>
116       <!-- rgb 1 1 0 amb 1 1 0 emis 0 0 0 spec 1 1 1 shi 32 trans 0.05  -->
117       <diffuse>
118        <red>1</red>
119        <green>1</green>
120        <blue>0</blue>
121       </diffuse>
122       <ambient>
123        <red alias="/sim/model/airwaveXtreme150/material/SailLower/diffuse/red"/>
124        <green alias="/sim/model/airwaveXtreme150/material/SailLower/diffuse/green"/>
125        <blue alias="/sim/model/airwaveXtreme150/material/SailLower/diffuse/blue"/>       
126       </ambient>
127       <transparency>
128        <alpha>0.95</alpha>
129       </transparency>
130      </SailLower>
131
132      <SailLowerStripe>
133       <!-- rgb 0.034 0.65 0.247 amb 0.034 0.65 0.247 emis 0 0 0 spec 1 1 1 shi 32 trans 0.05  -->
134       <diffuse>
135        <red>0.034</red>
136        <green>0.65</green>
137        <blue>0.247</blue>
138       </diffuse>
139       <ambient>
140        <red alias="/sim/model/airwaveXtreme150/material/SailLowerStripe/diffuse/red"/>
141        <green alias="/sim/model/airwaveXtreme150/material/SailLowerStripe/diffuse/green"/>
142        <blue alias="/sim/model/airwaveXtreme150/material/SailLowerStripe/diffuse/blue"/>       
143       </ambient>
144       <transparency>
145        <alpha>0.95</alpha>
146       </transparency>  
147      </SailLowerStripe>
148
149     </material>
150     
151     <kingpost type="bool">0</kingpost>
152     <single_surface type="bool">0</single_surface>
153     <wheels type="bool">0</wheels>
154         
155    </airwaveXtreme150>
156
157   </model>
158
159   <multiplay>
160    <generic>
161     <float n="0" alias="/animation/running_leg_left"/>
162     <float n="1" alias="/animation/running_leg_right"/>
163     <float n="2" alias="/animation/running_leg"/>
164     <float n="3" alias="/animation/running_leg_sign"/> 
165     <float n="4" alias="/controls/flight/elevator-trim"/>
166     <float n="5" alias="/gear/gear[1]/position-norm"/>
167     <int n="0" alias="/sim/model/airwaveXtreme150/kingpost"/>
168     <int n="1" alias="/sim/model/airwaveXtreme150/single_surface"/>
169     <int n="2" alias="/sim/model/airwaveXtreme150/wheels"/>
170     <int n="3" alias="/gear/gear[2]/wow"/>
171     <int n="4" alias="/sim/current-view/view-number"/>    
172    </generic>
173   </multiplay>
174
175
176 <!--              
177               y       
178               |  x       
179               | / 
180               |/ 
181               ______z
182              
183             View-System
184 -->               
185
186     <view n="0">
187       <internal archive="y">true</internal>
188       <config>
189         <pitch-offset-deg>-13.0</pitch-offset-deg>   
190    <!--Right--> <x-offset-m archive="y">0.</x-offset-m>
191    <!--Up-->    <y-offset-m archive="y">-0.05</y-offset-m>
192    <!--Back-->  <z-offset-m archive="y">-0.5</z-offset-m>
193       </config>
194     </view>
195 <!--
196   <view n="1">
197    <config>
198     <eye-heading-deg-path>/orientation/gamma-horiz-deg</eye-heading-deg-path>
199    </config>
200   </view>
201 -->
202   <view n="100">
203     <name>Keel View</name>
204     <type>lookfrom</type>
205     <internal type="bool">true</internal>
206     <config>
207       <from-model type="bool">true</from-model>
208       <from-model-idx type="int">0</from-model-idx>
209       <x-offset-m archive="y" type="double">0.00</x-offset-m>
210       <y-offset-m archive="y" type="double">-0.21</y-offset-m>
211       <z-offset-m archive="y" type="double">2.6</z-offset-m>
212       <pitch-offset-deg type="double">0</pitch-offset-deg>
213     </config>
214   </view>
215
216   <!-- right wingtip -->
217   <view n="101">
218     <name>Right Wingtip View</name>
219     <enabled type="bool">true</enabled>
220     <type>lookfrom</type>
221     <internal type="bool">true</internal>
222     <config>
223       <from-model type="bool">true</from-model>
224       <from-model-idx type="int">0</from-model-idx>
225       <x-offset-m archive="y" type="double">5.15</x-offset-m>
226       <y-offset-m archive="y" type="double">0.25</y-offset-m>
227       <z-offset-m archive="y" type="double">1.</z-offset-m>
228       <pitch-offset-deg type="double">-8</pitch-offset-deg>
229       <heading-offset-deg type="double">75.0</heading-offset-deg>
230     </config>
231   </view>
232   
233   <!-- left wingtip -->
234   <view n="102">
235     <name>Left Wingtip View</name>
236     <enabled type="bool">true</enabled>
237     <type>lookfrom</type>
238     <internal type="bool">true</internal>
239     <config>
240       <from-model type="bool">true</from-model>
241       <from-model-idx type="int">0</from-model-idx>
242       <x-offset-m archive="y" type="double">-5.15</x-offset-m>
243       <y-offset-m archive="y" type="double">0.25</y-offset-m>
244       <z-offset-m archive="y" type="double">1.</z-offset-m>
245       <pitch-offset-deg type="double">-8</pitch-offset-deg>
246       <heading-offset-deg type="double">-75.0</heading-offset-deg>
247     </config>
248   </view>
249
250   <!-- top of harness -->
251   <view n="103">
252     <name>Harness View</name>
253     <enabled type="bool">true</enabled>
254     <type>lookfrom</type>
255     <internal type="bool">true</internal>
256     <config>
257       <from-model type="bool">true</from-model>
258       <from-model-idx type="int">0</from-model-idx>
259       <x-offset-m archive="y" type="double">0.</x-offset-m>
260       <y-offset-m archive="y" type="double">0.0</y-offset-m>
261       <z-offset-m archive="y" type="double">1.14</z-offset-m>
262       <pitch-offset-deg type="double">0.</pitch-offset-deg>
263       <heading-offset-deg type="double">0.</heading-offset-deg>
264     </config>
265   </view>
266
267   <current-view><view-number type="int">8</view-number></current-view> 
268        
269   <menubar>
270    <default>
271     <menu n="10">
272      <label>Airwave Xtreme 150</label>
273      <enabled type="bool">true</enabled>     
274
275      <item>
276       <label>---------------------------</label>    
277       <enabled>false</enabled>
278      </item>
279
280      <item>
281       <label>Predefined Variants </label>
282        <binding>
283         <command>nasal</command>
284         <script>aircraft.livery.dialog.open()</script>
285        </binding>
286      </item>    
287
288      <item>                               
289       <label>----- Manual Customization -----</label>    
290       <enabled>false</enabled>
291      </item>
292
293      <item>
294       <label>Toggle Single/Double Surface </label>
295        <binding>
296         <command>property-toggle</command>
297         <property>sim/model/airwaveXtreme150/single_surface</property>
298         <value>0</value>
299        </binding>
300      </item>    
301
302      <item>
303       <label>Toggle With/Without Kingpost </label>
304        <binding>
305         <command>property-toggle</command>
306         <property>sim/model/airwaveXtreme150/kingpost</property>
307         <value>0</value>
308        </binding>
309      </item>    
310
311      <item>
312       <label>Toggle With/Without Wheels </label>
313        <binding>
314         <command>property-toggle</command>
315         <property>sim/model/airwaveXtreme150/wheels</property>
316         <value>0</value>
317        </binding>
318      </item>    
319
320      <item>     
321       <label>Customise Colours</label>
322        <binding>
323         <command>nasal</command>
324         <script>
325          material.showDialog("/sim/model/airwaveXtreme150/material/LeadingEdge/", nil, 10);
326          material.showDialog("/sim/model/airwaveXtreme150/material/SailUpper/", nil, 240);
327          material.showDialog("/sim/model/airwaveXtreme150/material/TrailingEdge/", nil, 470);    
328          material.showDialog("/sim/model/airwaveXtreme150/material/SailLower/", nil, 710);
329          material.showDialog("/sim/model/airwaveXtreme150/material/SailLowerStripe/", nil, 950);         
330         </script>
331        </binding>
332      </item>       
333
334      <item>
335       <label>---------------------------</label>    
336       <enabled>false</enabled>
337      </item>
338
339      <item>
340       <label>Performance Settings</label>
341        <binding>
342        <command>nasal</command>
343         <script>airwaveXtreme150.performance_settings_dialog.open()</script>
344        </binding>
345      </item>    
346     
347      <item>
348       <label>----------- Misc. -----------</label>    
349       <enabled>false</enabled>
350      </item>
351
352      <item>
353       <label>Variometer</label>
354       <binding>
355         <command>nasal</command>
356         <script>airwaveXtreme150.variometer.toggle()</script>
357       </binding>
358      </item>
359
360      <item>
361       <label>Toggle Pilot Animation Rotate + Yaw</label>
362        <binding>
363         <command>property-toggle</command>
364       <!--  <property>sim/auto-coordination</property> -->
365         <property>controls/flight/auto-coordination</property>
366         <value>0</value> 
367        </binding>
368      </item>    
369     
370     </menu>
371    </default>
372   </menubar>
373         
374   <help>
375    <title>Airwave Xtreme 150</title>
376       <key>
377         <name>9/PgUp</name>
378         <desc>Running forward / increase throttle</desc>
379       </key>
380       <key>
381         <name>3/PgDn</name>
382         <desc>walking backward / decrease throttle</desc>
383       </key>
384       <key>
385         <name>0/INSERT</name>
386         <desc>turn pilot left (on ground / no fdm function in air)</desc>
387       </key>
388       <key>
389         <name>ENTER</name>
390         <desc>turn pilot right (on ground / no fdm function in air)</desc>
391       </key>
392       <key>
393         <name>g/G</name>
394         <desc>legs into/out of harness</desc>
395       </key>
396       <key>
397         <name>7/Home</name>
398         <desc>more prone pilot</desc>
399       </key>
400       <key>
401         <name>1/End</name>
402         <desc>erect pilot</desc>
403       </key>
404        <key>
405         <name>s</name>
406         <desc>toggle start/stop generic engine</desc>
407       </key>     
408       <key>
409         <name>Ctrl-U</name>
410         <desc>jump up 1000ft</desc>
411       </key>
412       <key>
413         <name>P</name>
414         <desc>toggle generic panel on/off</desc>
415       </key>
416
417       <key>
418         <name>S</name>
419         <desc>toggle imperial/metric units for instruments"</desc>
420       </key>
421       <key>
422         <name>}/{</name>
423         <desc>deploy parachute / retract parachute</desc>
424       </key>
425
426       <line> </line>      
427       <line>Best flown with "Keel View" </line>
428       <line> </line>
429  
430       <line>Important for ground handling:</line>
431       <line>The running force (forward) is set to 0 by only once</line> 
432       <line> pressing 3/PgDn (backward) and vice versa.</line>
433       <line> Once in air the force is also set to 0.</line>
434       <line>Breaks ("b") are usable.</line> 
435       <line>The parking-brake is set automatically after inserting the legs.</line>
436       <line> </line>
437       
438       <line>Take-off:</line>
439       <line>From mountain: Run forward</line>
440       <line>From flat terrain: "s" + increase throttle or Ctrl-U</line>
441       <line> </line>
442       <line>Touch down:</line>
443       <line>1. erect pilot</line>
444       <line>2. wait until running animation starts (altitude less than 10ft)</line>
445       <line>3. reduce speed to trim speed while keeping altitude</line>
446       <line>4. push A-frame (pull joystick/mouse)</line>  
447       <line> </line> 
448       <line>Note: </line>             
449       <line>This hang glider is a conversion of the LaRCsim/UIUC fdm.</line>
450       <line>Flying (under positiv g-force conditions) is quite realistic. </line> 
451       <line>Feel the influence of wind, turbulence, thermals and ridge lift!</line>
452       <line>Appropriate settings for ridge lift is wind with 15-20kt normal</line>
453       <line> to the slope orientation in all altitudes.  </line>
454       <line>Be careful with the angle of attack in strong winds on ground!</line>
455       <line> </line>
456       <line>More useful information about fdm:</line>
457       <line>/Aircraft/UIUC/airwaveXtreme150-v1-nl/README.airwaveXtreme150.html</line>   
458       <line> </line> 
459                   
460   </help>
461
462   <status>beta</status>
463   <rating>
464    <FDM type="int">4</FDM>
465    <systems type="int">2</systems>
466    <cockpit type="int">2</cockpit>
467    <model type="int">4</model>
468   </rating>
469
470  </sim>
471
472  <input>
473   <keyboard>
474    <key n="115">
475     <name>s</name>
476     <desc>Toggle Engine Running</desc>
477     <binding>
478      <command>property-toggle</command>
479      <property>/sim/model/airwaveXtreme150/engine_running</property>
480     </binding>
481    </key>
482
483    <key n="57">
484     <name>9</name>
485       <desc>Increase running force</desc>
486       <repeatable type="bool">true</repeatable>
487       <binding>
488         <command>property-adjust</command>
489         <property>/fdm/jsbsim/fcs/running-force-norm</property>
490         <step>0.02</step>
491         <min>0</min>
492         <max>1</max>
493       </binding>
494       <binding>
495         <command>property-adjust</command>
496         <property>/fdm/jsbsim/fcs/throttle-generic-engine-norm</property>
497         <step>0.02</step>
498         <min>0</min>
499         <max>1</max>
500       </binding>
501    </key>    
502
503    <key n="360">
504     <name>PageUp</name>
505       <desc>Increase running force</desc>
506       <repeatable type="bool">true</repeatable>
507       <binding>
508         <command>property-adjust</command>
509         <property>/fdm/jsbsim/fcs/running-force-norm</property>
510         <step>0.02</step>
511         <min>0</min>
512         <max>1</max>
513       </binding>
514       <binding>
515         <command>property-adjust</command>
516         <property>/fdm/jsbsim/fcs/throttle-generic-engine-norm</property>
517         <step>0.02</step>
518         <min>0</min>
519         <max>1</max>
520       </binding>
521    </key>    
522
523    <key n="51">
524     <name>3</name>
525       <desc>Decrease running force to zero</desc>
526       <repeatable type="bool">true</repeatable>
527       <binding>
528         <command>property-adjust</command>
529         <property>/fdm/jsbsim/fcs/running-force-norm</property>
530         <step>-0.02</step>
531         <min>-1.</min>
532         <max>0.</max>
533       </binding>
534       <binding>
535         <command>property-adjust</command>
536         <property>/fdm/jsbsim/fcs/throttle-generic-engine-norm</property>
537         <step>-0.02</step>
538         <min>0</min>
539         <max>1</max>
540       </binding>
541    </key>
542
543    <key n="361">
544     <name>PageDown</name>
545       <desc>Decrease running force to zero</desc>
546       <repeatable type="bool">true</repeatable>
547       <binding>
548         <command>property-adjust</command>
549         <property>/fdm/jsbsim/fcs/running-force-norm</property>
550         <step>-0.02</step>
551         <min>-1.</min>
552         <max>0.</max>
553       </binding>
554       <binding>
555         <command>property-adjust</command>
556         <property>/fdm/jsbsim/fcs/throttle-generic-engine-norm</property>
557         <step>-0.02</step>
558         <min>0</min>
559         <max>1</max>
560       </binding>
561    </key>
562
563    <key n="10">
564     <name>Enter</name>
565     <desc>Turning moment right</desc>
566     <repeatable type="bool">true</repeatable>
567     <binding>
568      <command>property-adjust</command>
569      <property>/fdm/jsbsim/fcs/turning-moment-norm</property>
570      <step type="double">0.05</step>
571           <min>0.</min>
572           <max>1.</max>
573     </binding>
574    </key>
575
576    <key n="364">
577     <name>Insert</name>
578     <desc>Turning moment left</desc>
579     <repeatable type="bool">true</repeatable>
580     <binding>
581      <command>property-adjust</command>
582      <property>/fdm/jsbsim/fcs/turning-moment-norm</property>
583      <step type="double">-0.05</step>
584           <min>-1.</min>
585           <max>0.</max>
586     </binding>
587    </key>
588
589
590   </keyboard> 
591  </input> 
592  
593  <nasal>
594   <airwaveXtreme150>
595    <file>Aircraft/airwaveXtreme150/Nasal/running.nas</file> 
596    <file>Aircraft/airwaveXtreme150/Nasal/ViewAnimation.nas</file>
597    <file>Aircraft/airwaveXtreme150/Nasal/liveries.nas</file>
598    <file>Aircraft/airwaveXtreme150/Nasal/dialogs.nas</file>   
599   </airwaveXtreme150>
600  </nasal>    
601    
602  <instrumentation>
603   <variometer>
604    <switch type="bool">1</switch>
605    <volume type="float">0.5</volume>
606    <sensitivity type="float">0.175</sensitivity>
607   </variometer>
608  </instrumentation>
609
610  <fdm>
611    <jsbsim>
612      <aero>
613        <max-glide-ratio type="float">14.15</max-glide-ratio>
614      </aero>
615      <metrics>
616        <Sw-m2 type="float">40.</Sw-m2> 
617      </metrics>
618      <fcs>
619        <parachute-pos-norm type="double">0.</parachute-pos-norm>       
620        <running-force-norm type="double">0.</running-force-norm>
621        <throttle-generic-engine-norm type="double">0.</throttle-generic-engine-norm>
622        <turning-moment-norm type="double">0.</turning-moment-norm> 
623      </fcs> 
624     </jsbsim>
625  </fdm>
626  
627  <controls>
628    <flight>
629      <elevator-trim type="double">0.0</elevator-trim>
630      <auto-coordination-factor type="float">0.5</auto-coordination-factor>
631    </flight>
632    <gear>
633      <brake-parking type="double">1</brake-parking>
634      <antiskid      type="bool">false</antiskid>
635    </gear> 
636  </controls> 
637  
638    
639 </PropertyList>