Dave Culp:
[fg:fgdata.git] / Aircraft / sgs233 / sgs233-set.xml
1 <?xml version="1.0"?>
2 <!--
3 ************************************************************************
4 sgs233 JSBSim config file
5 David Culp,  davidculp2@comcast.net
6 ************************************************************************
7 -->
8
9 <PropertyList>
10
11  <sim>
12
13   <description>Schweizer 2-33</description>
14   <author>David Culp, Captain Slug (3D)</author>
15  
16   <flight-model>jsb</flight-model>
17   <aero>sgs233</aero>
18
19   <startup>
20    <units>feet</units>
21   </startup>
22
23   <presets>
24    <onground>false</onground>
25    <speed-set>knots</speed-set>
26    <airport-id type="string">KSFO</airport-id>
27    <runway type="string">28R</runway>
28    <airspeed-kt type="double">60.0</airspeed-kt>
29    <altitude-ft type="double">3000.0</altitude-ft>
30   </presets>
31   
32   <sound>
33    <path>Aircraft/sgs233/glider-sound.xml</path>
34   </sound>
35
36   <panel>
37    <path>Aircraft/sgs233/Panels/glider-panel.xml</path>
38    <visibility archive="y">true</visibility>
39    <x-offset>256</x-offset>
40   </panel>
41
42   <systems>
43    <electrical>
44     <path>Aircraft/sgs233/null-electrical.xml</path>
45     <serviceable archive="y">false</serviceable>
46    </electrical>
47   </systems>
48
49   <model>
50     <path>Aircraft/sgs233/Models/sgs233.ac</path>
51   </model>
52
53   <ai>
54    <scenario>thermal_demo</scenario>
55   </ai>
56
57   <help>
58    <key>
59     <name>j/k</name>
60     <desc>decrease/increase spoilers</desc>
61    </key>
62   </help>
63
64 </sim>
65
66 <!-- This binds the joystick's throttle slider to the spoilers. -->
67 <nasal>
68  <sgs233>
69   <script>
70    var spoilers = props.globals.getNode("/controls/flight/spoilers", 1);
71    controls.throttleAxis = func {
72        val = cmdarg().getNode("setting").getValue();
73        if (size(arg) > 0) {
74            val = -val;
75        }
76        spoilers.setValue((1 - val) / 2);
77    }
78   </script>
79  </sgs233>
80 </nasal>
81
82 <!-- set clouds to match thermal scenario -->
83 <environment>
84   <clouds>
85    <status>true</status>
86    <layer n="0">
87     <coverage>scattered</coverage>
88     <elevation-ft>6000</elevation-ft>
89     <thickness-ft>600</thickness-ft>
90     <transition-ft>150</transition-ft>
91     <span-m>40000</span-m>
92    </layer>
93    <layer n="1">
94     <coverage>clear</coverage>
95     <span-m>40000</span-m>
96    </layer>
97    <layer n="2">
98     <coverage>clear</coverage>
99     <span-m>40000</span-m>
100    </layer>
101    <layer n="3">
102     <coverage>clear</coverage>
103     <span-m>40000</span-m>
104    </layer>
105    <layer n="5">
106     <coverage>clear</coverage>
107     <span-m>40000</span-m>
108    </layer>
109   </clouds>
110 </environment>
111
112
113 </PropertyList>