add <help> entry for throttle lever, which also operates the spoilers
[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    <key>
63     <name>throttle</name>
64     <desc>adjust spoilers</desc>
65    </key>
66   </help>
67
68 </sim>
69
70 <!-- This binds the joystick's throttle slider to the spoilers. -->
71 <nasal>
72  <sgs233>
73   <script>
74    var spoilers = props.globals.getNode("/controls/flight/spoilers", 1);
75    controls.throttleAxis = func {
76        val = cmdarg().getNode("setting").getValue();
77        if (size(arg) > 0) {
78            val = -val;
79        }
80        spoilers.setValue((1 - val) / 2);
81    }
82   </script>
83  </sgs233>
84 </nasal>
85
86 <!-- set clouds to match thermal scenario -->
87 <environment>
88   <clouds>
89    <status>true</status>
90    <layer n="0">
91     <coverage>scattered</coverage>
92     <elevation-ft>6000</elevation-ft>
93     <thickness-ft>600</thickness-ft>
94     <transition-ft>150</transition-ft>
95     <span-m>40000</span-m>
96    </layer>
97    <layer n="1">
98     <coverage>clear</coverage>
99     <span-m>40000</span-m>
100    </layer>
101    <layer n="2">
102     <coverage>clear</coverage>
103     <span-m>40000</span-m>
104    </layer>
105    <layer n="3">
106     <coverage>clear</coverage>
107     <span-m>40000</span-m>
108    </layer>
109    <layer n="5">
110     <coverage>clear</coverage>
111     <span-m>40000</span-m>
112    </layer>
113   </clouds>
114 </environment>
115
116
117 </PropertyList>