Phi: nicer scroll animation for METAR widget
[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   <hitches>
58    <aerotow>
59     <force_name_jsbsim type="string">nose</force_name_jsbsim>
60     <local-pos-x type="float"> 2.1</local-pos-x>
61     <local-pos-y type="float"> 0.0</local-pos-y>
62     <local-pos-z type="float">-0.35</local-pos-z>
63     <force-is-calculated-by-other type="bool">false</force-is-calculated-by-other>
64     <tow>
65      <brake-force type="float">10000</brake-force>
66      <elastic-constant type="float">9000</elastic-constant>
67     </tow>
68    </aerotow>
69    <winch>
70     <force_name_jsbsim type="string">belly</force_name_jsbsim>
71     <local-pos-x type="float"> 0.2</local-pos-x>
72     <local-pos-y type="float"> 0.0</local-pos-y>
73     <local-pos-z type="float">-0.7</local-pos-z>
74     <automatic-release-angle-deg type="float">70.</automatic-release-angle-deg>
75     <winch>
76      <initial-tow-length-m type="float">1000.</initial-tow-length-m>
77      <max-tow-length-m type="float">1500.</max-tow-length-m> 
78      <max-force-N type="float">9000.</max-force-N>
79      <max-power-kW type="float">100.</max-power-kW>
80      <max-spool-speed-m-s type="float">30.</max-spool-speed-m-s>
81      <rel-speed alias="/sim/hitches/winch/winch/actual-spool-speed-m-s"/>
82     </winch>
83     <tow>
84      <break-force type="float">10000</break-force>
85      <elastic-constant type="float">40000</elastic-constant>
86     </tow>
87    </winch>
88   </hitches>
89
90   <help>
91    <key>
92     <name>j/k</name>
93     <desc>decrease/increase spoilers</desc>
94    </key>
95    <key>
96     <name>throttle</name>
97     <desc>adjust spoilers</desc>
98    </key>
99    <key>  
100     <name></name>
101     <desc></desc>
102    </key>
103    <key>
104     <name>Ctrl-w</name>
105     <desc>place winch</desc>
106    </key>
107    <key>
108     <name>w</name>
109     <desc>start winching</desc>
110    </key>
111    <key>
112     <name>W</name>
113     <desc>opens winch-hook</desc>
114    </key>
115    <key>
116     <name>Ctrl-o</name>
117     <desc>find aircraft for aerotow</desc>
118    </key>
119    <key>
120     <name>o</name>
121     <desc>locks aerotow-hook</desc>
122    </key>
123    <key>
124     <name>O</name>
125     <desc>opens aerotow-hook</desc>
126    </key>
127   </help>
128   
129 </sim>
130
131 <input> 
132  <keyboard> 
133   <key n="15">
134     <name>Ctrl-o</name>
135     <desc>Find towplane</desc>
136     <binding>
137       <command>nasal</command>
138       <script>towing.findBestAIObject()</script>
139     </binding>
140   </key>  
141   <key n="111">
142     <name>o</name>
143     <desc>Locks aerotow-hook</desc>
144     <binding>
145       <command>nasal</command>
146       <script>towing.closeHitch()</script>
147     </binding>
148   </key>  
149   <key n="79">
150     <name>O</name>
151     <desc>Opens aerotow-hook</desc>
152     <binding>
153       <command>nasal</command>
154       <script>towing.releaseHitch("aerotow")</script>
155     </binding>
156   </key>
157   <key n="23">
158     <name>Ctrl-w</name>
159     <desc>Place Winch and hook in</desc>
160     <binding>
161       <command>nasal</command>
162       <script>towing.setWinchPositionAuto()</script>
163     </binding>
164   </key>
165   <key n="119">
166     <name>w</name>
167     <desc>Start winch</desc>
168     <binding>
169       <command>nasal</command>
170       <script>towing.runWinch()</script>
171     </binding>
172   </key>
173   <key n="87">
174     <name>W</name>
175     <desc>Opens winch-hook</desc>
176     <binding>
177       <command>nasal</command>
178       <script>towing.releaseHitch("winch")</script>
179     </binding>
180   </key>
181  </keyboard> 
182 </input> 
183
184 <!-- This binds the joystick's throttle slider to the spoilers. -->
185 <nasal>
186  <sgs233>
187   <script>
188    var spoilers = props.globals.getNode("/controls/flight/spoilers", 1);
189    controls.throttleAxis = func {
190        val = cmdarg().getNode("setting").getValue();
191        if (size(arg) > 0) {
192            val = -val;
193        }
194        spoilers.setValue((1 - val) / 2);
195    }
196   </script>
197  </sgs233>
198 </nasal>
199
200 <!-- set clouds to match thermal scenario -->
201 <environment>
202   <clouds>
203    <status>true</status>
204    <layer n="0">
205     <coverage>scattered</coverage>
206     <elevation-ft>6000</elevation-ft>
207     <thickness-ft>600</thickness-ft>
208     <transition-ft>150</transition-ft>
209     <span-m>40000</span-m>
210    </layer>
211    <layer n="1">
212     <coverage>clear</coverage>
213     <span-m>40000</span-m>
214    </layer>
215    <layer n="2">
216     <coverage>clear</coverage>
217     <span-m>40000</span-m>
218    </layer>
219    <layer n="3">
220     <coverage>clear</coverage>
221     <span-m>40000</span-m>
222    </layer>
223    <layer n="5">
224     <coverage>clear</coverage>
225     <span-m>40000</span-m>
226    </layer>
227   </clouds>
228 </environment>
229
230
231 </PropertyList>