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 <nasal>
67  <sgs233>
68   <script>
69    var spoilers = props.globals.getNode("/controls/flight/spoilers", 1);
70    controls.throttleAxis = func {
71        val = cmdarg().getNode("setting").getValue();
72        if (size(arg) > 0) {
73            val = -val;
74        }
75        spoilers.setValue((1 - val) / 2);
76    }
77   </script>
78  </sgs233>
79 </nasal>
80
81 </PropertyList>