Integrates existing soaring instruments with the soaring sdk
[fg:toms-fgdata.git] / Aircraft / bocian / bocian-set.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4         <sim>
5                 <description>Bocian 1E</description>
6                 <author>AJ MacLeod</author>
7                 <status>alpha</status>
8
9                 <flight-model>yasim</flight-model>
10                 <aero>bocian-yasim</aero>
11
12                 <startup>
13                         <splash-texture>Aircraft/bocian/splash1.rgb</splash-texture>
14                 </startup>
15
16                 <sound>
17                         <path>Aircraft/bocian/Sounds/bocian-sound.xml</path>
18                 </sound>
19
20                 <virtual-cockpit archive="y">true</virtual-cockpit>
21                 <allow-toggle-cockpit archive="y">true</allow-toggle-cockpit>
22
23                 <model>
24                         <path>Aircraft/bocian/Models/bocian-model.xml</path>
25                 </model>
26
27                 <menubar>
28                         <default>
29                                 <menu n="10">
30                                         <label>Bocian</label>
31                                         <enabled type="bool">true</enabled>
32                                         <item>
33                                                 <label>Variometer</label>
34                                                 <binding>
35                                                         <command>nasal</command>
36                                                         <script>bocian.variometer.toggle()</script>
37                                                 </binding>
38                                         </item>
39                                 </menu>
40                         </default>
41                 </menubar>
42
43                 <ai>
44                         <scenario>thermal_demo</scenario>
45                 </ai>
46
47                 <view n="0">
48                 <internal archive="y">true</internal>
49                 <config>
50                         <pitch-offset-deg>-13.0</pitch-offset-deg>
51                         <x-offset-m archive="y">0.0</x-offset-m> <!--Right-->
52                         <y-offset-m archive="y">0.75</y-offset-m> <!--Up-->
53                         <z-offset-m archive="y">1.40</z-offset-m> <!--Back-->
54                         </config>
55                 </view>
56
57                 <view n="1">
58                         <config>
59                                 <target-z-offset-m archive="y" type="double">2.8</target-z-offset-m>
60                         </config>
61                 </view>
62
63                 <view n="2">
64                         <config>
65                                 <target-z-offset-m archive="y" type="double">2.8</target-z-offset-m>
66                         </config>
67                 </view>
68
69                 <view n="3">
70                         <config>
71                                 <target-z-offset-m archive="y" type="double">2.8</target-z-offset-m>
72                         </config>
73                 </view>
74
75                 <view n="4">
76                         <config>
77                                 <target-z-offset-m archive="y" type="double">2.8</target-z-offset-m>
78                         </config>
79                 </view>
80
81                 <view n="5">
82                         <config>
83                                 <target-z-offset-m archive="y" type="double">2.8</target-z-offset-m>
84                         </config>
85                 </view>
86
87                 <help>
88                         <title>Bocian</title>
89                         <line>Vs = 32 knots</line>
90                         <line>VNE = 108 knots</line>
91                         <line>Max Aerotow Speed = 75 knots</line>
92                         <line>Max Winch Speed = 62 knots</line>
93                         <key>
94                                 <name>throttle</name>
95                                 <desc>control airbrakes (full throttle=full airbrakes)</desc>
96                         </key>
97                         <key>
98                                 <name>Ctrl-w</name>
99                                 <desc>Place Winch 1000m in front of aircraft (on ground)</desc>
100                         </key>
101                         <key>
102                                 <name>w</name>
103                                 <desc>Start winching</desc>
104                         </key>
105                         <key>
106                                 <name>W</name>
107                                 <desc>Opens winch-hook</desc>
108                         </key>
109                         <key>
110                                 <name>Ctrl-o</name>
111                                 <desc>Find aircraft for aerotow (must be within 60m)</desc>
112                         </key>
113                         <key>
114                                 <name>O</name>
115                                 <desc>opens aerotow-hook</desc>
116                         </key>
117                         <key>
118                                 <name>o</name>
119                                 <desc>locks aerotow-hook</desc>
120                         </key>
121
122                 </help>
123                 <hitches>
124                         <!-- make sure some properties do exist, when the list for multiplayer transfer is defined-->
125                         <!-- they need to be in the same value, as they are initilized in the FDM, to get the same values after reset
126                                    should fix this somehow-->
127                         <aerotow>
128                                 <tow>
129                                         <length type="float">60</length>
130                                         <elastic-constant type="float">10000</elastic-constant>
131                                         <weight-per-m-kg-m type="float">1</weight-per-m-kg-m>
132                                         <dist type="float">1</dist>
133                                         <connected-to-property-node type="bool"></connected-to-property-node>
134                                         <brake-force type="float">100000</brake-force>
135                                         <connected-to-ai-or-mp-callsign type ="string">*</connected-to-ai-or-mp-callsign>
136                                         <end-force-x type ="float">0</end-force-x>
137                                         <end-force-y type ="float">0</end-force-y>
138                                         <end-force-z type ="float">0</end-force-z>
139                                 </tow>
140                                 <speed-in-tow-direction type="float">0</speed-in-tow-direction>
141                                 <open type="bool">true</open>
142                                 <local-pos-x type="float">0</local-pos-x>
143                                 <local-pos-y type="float">0</local-pos-y>
144                                 <local-pos-z type="float">0</local-pos-z>
145                                 <is-slave type="bool">false</is-slave>
146                         </aerotow>
147                 </hitches>
148         </sim>
149
150         <controls>
151                 <winch>
152                         <place type="bool">false</place>
153                 </winch>
154                 <aerotow>
155                         <find-aircraft type="bool">false</find-aircraft>
156                 </aerotow>
157         </controls>
158
159         <input>
160                 <keyboard>
161                         <key n="23">
162                         <name>Ctrl-w</name>
163                         <desc>Place Winch 1000m in front of aircraft</desc>
164                         <binding>
165                                 <command>nasal</command>
166                                 <script>bocian.placeWinch()</script>
167                         </binding>
168                         </key>
169                         <key n="87">
170                                 <name>W</name>
171                                 <desc>Open winch hook</desc>
172                                 <binding>
173                                         <command>property-assign</command>
174                                         <property>/sim/hitches/winch/open</property>
175                                         <value type="bool">true</value>
176                                 </binding>
177                                 <binding>
178                                         <command>property-assign</command>
179                                         <property>/sim/model/bocian/winch-hook-pos</property>
180                                         <value type="int">1</value>
181                                 </binding>
182                                 <mod-up>
183                                         <binding>
184                                                 <command>property-assign</command>
185                                                 <property>/sim/model/bocian/winch-hook-pos</property>
186                                                 <value type="int">0</value>
187                                         </binding>
188                                 </mod-up>
189                         </key>
190                         <key n="119">
191                                 <name>w</name>
192                                 <desc>Start winch</desc>
193                                 <binding>
194                                         <command>nasal</command>
195                                         <script>interpolate("/sim/hitches/winch/winch/rel-speed", 1.0, 2)</script>
196                                 </binding>
197                         </key>
198                         <key n="15">
199                                 <name>Ctrl-o</name>
200                                 <desc>Find aircraft for aerotow</desc>
201                                 <binding>
202                                         <command>property-assign</command>
203                                         <property>/controls/aerotow/find-aircraft</property>
204                                         <value type="bool">true</value>
205                                 </binding>
206                                 <mod-up>
207                                         <binding>
208                                                 <command>property-assign</command>
209                                                 <property>/controls/aerotow/find-aircraft</property>
210                                                 <value type="bool">false</value>
211                                         </binding>
212                                 </mod-up>
213                         </key>
214                         <key n="111">
215                                 <name>o</name>
216                                 <desc>Lock aerotow hook</desc>
217                                 <binding>
218                                         <command>property-assign</command>
219                                         <property>/sim/hitches/aerotow/open</property>
220                                         <value type="bool">false</value>
221                                 </binding>
222                         </key>
223                         <key n="79">
224                                 <name>O</name>
225                                 <desc>Open aerotow hook</desc>
226                                 <binding>
227                                         <command>property-assign</command>
228                                         <property>/sim/hitches/aerotow/open</property>
229                                         <value type="bool">true</value>
230                                 </binding>
231                         </key>
232                 </keyboard>
233         </input>
234
235         <nasal>
236                 <bocian>
237                         <file>Aircraft/bocian/Nasal/vario.nas</file>
238                         <file>Aircraft/bocian/Nasal/winch.nas</file>
239                         <file>Aircraft/bocian/Nasal/yawstring.nas</file>
240                 </bocian>
241         </nasal>
242
243         <instrumentation>
244                 <variometer>
245                         <switch type="bool">0</switch>
246                         <volume type="float">0.5</volume>
247                         <sensitivity type="float">0.175</sensitivity>
248                 </variometer>
249         </instrumentation>
250
251 </PropertyList>