Debian Codegraph @

Aircraft/Instruments-3d/RAF_Mk9_bubble_sextant/RAF_Mk9_bubble_sextant.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 RAF Mk9 bubble sextant.
4
5 Copyright (C) 2008 - 2013 Anders Gidenstam (anders(at)gidenstam.org)
6 This file is licensed under the GPL license version 2 or later.
7 -->
8 <PropertyList>
9
10 <!-- Overlay these to set the instrument number. -->
11 <params>
12 <!-- FIXME: These properties have not been made into parameters yet.
13 instrumentation/sextant[0]/roll-error-deg
14 instrumentation/sextant[0]/pitch-error-deg
15 instrumentation/sextant[0]/bubble-norm
16 instrumentation/sextant[0]/setting/deg10
17 instrumentation/sextant[0]/setting/deg1
18 instrumentation/sextant[0]/setting/min
19 instrumentation/sextant[0]/view-angle-deg
20 instrumentation/sextant[0]/view-distance-m
21 instrumentation/sextant[0]/offsets/roll-deg
22 instrumentation/sextant[0]/offsets/pitch-deg
23 instrumentation/sextant[0]/offsets/heading-deg
24 instrumentation/sextant[0]/offsets/x-m
25 instrumentation/sextant[0]/offsets/y-m
26 instrumentation/sextant[0]/offsets/z-m
27 -->
28 <serviceable>instrumentation/sextant[0]/serviceable</serviceable>
29 <lighting-norm>controls/lighting/dome-norm</lighting-norm>
30 </params>
31
32 <path>RAF_Mk9_bubble_sextant.ac</path>
33 <!-- x/y/z == back/right/up -->
34
35 <!-- =========================================================================
36 Instrument function animations.
37 ===================================================================== -->
38
39 <!-- ===================================================================== -->
40 <!-- Bubble movement -->
41 <animation>
42 <type>translate</type>
43 <object-name>bubble</object-name>
44 <property>instrumentation/sextant/roll-error-deg</property>
45 <axis>
46 <x>0</x>
47 <y>1</y>
48 <z>0</z>
49 </axis>
50 <interpolation>
51 <entry>
52 <ind>-4</ind>
53 <dep>0.008</dep>
54 </entry>
55 <entry>
56 <ind>0</ind>
57 <dep>0</dep>
58 </entry>
59 <entry>
60 <ind>4</ind>
61 <dep>-0.008</dep>
62 </entry>
63 </interpolation>
64 </animation>
65 <animation>
66 <type>translate</type>
67 <object-name>bubble</object-name>
68 <property>instrumentation/sextant/pitch-error-deg</property>
69 <axis>
70 <x>0</x>
71 <y>0</y>
72 <z>1</z>
73 </axis>
74 <interpolation>
75 <entry>
76 <ind>-4</ind>
77 <dep>0.008</dep>
78 </entry>
79 <entry>
80 <ind>0</ind>
81 <dep>0</dep>
82 </entry>
83 <entry>
84 <ind>4</ind>
85 <dep>-0.008</dep>
86 </entry>
87 </interpolation>
88 </animation>
89 <animation>
90 <type>scale</type>
91 <object-name>bubble</object-name>
92 <property>instrumentation/sextant/bubble-norm</property>
93 <x-factor>0.0</x-factor>
94 <x-offset>1.0</x-offset>
95 <y-factor>1.0</y-factor>
96 <y-offset>0.0</y-offset>
97 <z-factor>1.0</z-factor>
98 <z-offset>0.0</z-offset>
99 <center>
100 <x-m> -0.060 </x-m>
101 <y-m> 0.000 </y-m>
102 <z-m> 0.000 </z-m>
103 </center>
104 </animation>
105
106 <!-- If the bubble is gone the instrument is unserviceable. -->
107 <animation>
108 <type>select</type>
109 <object-name>bubble</object-name>
110 <condition>
111 <property alias="../../../params/serviceable"/>
112 </condition>
113 </animation>
114
115 <!-- ===================================================================== -->
116 <!-- 10 deg setting knob -->
117 <animation>
118 <type>knob</type>
119 <object-name>10_setting_knob</object-name>
120 <property>instrumentation/sextant/setting/deg10</property>
121 <factor>5.0</factor>
122 <offset-deg>-15.0</offset-deg>
123 <center>
124 <x-m> -0.057 </x-m>
125 <y-m> 0.035 </y-m>
126 <z-m> 0.038 </z-m>
127 </center>
128 <axis>
129 <x> 0.0 </x>
130 <y> 1.0 </y>
131 <z> 0.0 </z>
132 </axis>
133 <increase>
134 <binding>
135 <command>nasal</command>
136 <script>RAFmk9sextant.sextant.step_10deg_knob(1);</script>
137 </binding>
138 </increase>
139 <decrease>
140 <binding>
141 <command>nasal</command>
142 <script>RAFmk9sextant.sextant.step_10deg_knob(-1);</script>
143 </binding>
144 </decrease>
145 <hovered>
146 <binding>
147 <command>set-tooltip</command>
148 <label>Coarse setting: %2d0deg</label>
149 <measure-text>Coarse setting: 88deg</measure-text>
150 <tooltip-id>10deg_knob</tooltip-id>
151 <property>instrumentation/sextant/setting/deg10</property>
152 </binding>
153 </hovered>
154 </animation>
155 <animation>
156 <type>rotate</type>
157 <object-name>10_setting_knob_scale</object-name>
158 <property>instrumentation/sextant/setting/deg10</property>
159 <factor>5.0</factor>
160 <offset-deg>-15.0</offset-deg>
161 <center>
162 <x-m> -0.057 </x-m>
163 <y-m> 0.035 </y-m>
164 <z-m> 0.038 </z-m>
165 </center>
166 <axis>
167 <x> 0.0 </x>
168 <y> 1.0 </y>
169 <z> 0.0 </z>
170 </axis>
171 </animation>
172
173 <!-- ===================================================================== -->
174 <!-- Degree drum -->
175 <animation>
176 <type>rotate</type>
177 <object-name>degree_drum</object-name>
178 <property>instrumentation/sextant/setting/deg1</property>
179 <factor>36.0</factor>
180 <offset-deg>18</offset-deg>
181 <center>
182 <x-m> -0.1110 </x-m>
183 <y-m> 0.0150 </y-m>
184 <z-m> -0.0450 </z-m>
185 </center>
186 <axis>
187 <x> 1.0 </x>
188 <y> 0.0 </y>
189 <z> 0.0 </z>
190 </axis>
191 </animation>
192
193 <!-- ===================================================================== -->
194 <!-- Minute drum -->
195 <animation>
196 <type>rotate</type>
197 <object-name>minute_drum</object-name>
198 <property>instrumentation/sextant/setting/min</property>
199 <factor>6.0</factor>
200 <offset-deg>30.0</offset-deg>
201 <center>
202 <x-m> -0.1270 </x-m>
203 <y-m> 0.0040 </y-m>
204 <z-m> -0.0315 </z-m>
205 </center>
206 <axis>
207 <x>-1.0 </x>
208 <y> 0.0 </y>
209 <z> 0.0 </z>
210 </axis>
211 </animation>
212
213 <!-- ===================================================================== -->
214 <animation>
215 <type>knob</type>
216 <object-name>slow_motion_knob</object-name>
217 <property>instrumentation/sextant/setting/deg1</property>
218 <factor>120.0</factor>
219 <offset-deg>0</offset-deg>
220 <center>
221 <x-m> -0.0680 </x-m>
222 <y-m> 0.0230 </y-m>
223 <z-m> 0.0090 </z-m>
224 </center>
225 <axis>
226 <x> 0.0 </x>
227 <y> 1.0 </y>
228 <z> 0.0 </z>
229 </axis>
230 <increase>
231 <binding>
232 <command>nasal</command>
233 <script>RAFmk9sextant.sextant.adjust_altitude_fine(0.01667);</script>
234 </binding>
235 </increase>
236 <decrease>
237 <binding>
238 <command>nasal</command>
239 <script>RAFmk9sextant.sextant.adjust_altitude_fine(-0.01667);</script>
240 </binding>
241 </decrease>
242 <hovered>
243 <binding>
244 <command>set-tooltip</command>
245 <label>Fine setting: %2.4fdeg</label>
246 <measure-text>Fine setting: 00.000deg</measure-text>
247 <tooltip-id>1deg_knob</tooltip-id>
248 <property>instrumentation/sextant/setting/deg1</property>
249 </binding>
250 </hovered>
251 </animation>
252
253 <!-- ===================================================================== -->
254 <animation>
255 <type>knob</type>
256 <object-name>bubble_knob</object-name>
257 <property>instrumentation/sextant/bubble-norm</property>
258 <factor>360.0</factor>
259 <offset-deg>0</offset-deg>
260 <center>
261 <x-m> -0.0350 </x-m>
262 <y-m> -0.0230 </y-m>
263 <z-m> 0.0390 </z-m>
264 </center>
265 <axis>
266 <x> 0.0 </x>
267 <y> 1.0 </y>
268 <z> 0.0 </z>
269 </axis>
270 <increase>
271 <binding>
272 <command>nasal</command>
273 <script>RAFmk9sextant.sextant.step_bubble_knob(0.01);</script>
274 </binding>
275 </increase>
276 <decrease>
277 <binding>
278 <command>nasal</command>
279 <script>RAFmk9sextant.sextant.step_bubble_knob(-0.01);</script>
280 </binding>
281 </decrease>
282 <hovered>
283 <binding>
284 <command>set-tooltip</command>
285 <label>Bubble size %3d%%</label>
286 <measure-text>Bubble size 100%</measure-text>
287 <mapping>percent</mapping>
288 <tooltip-id>bubble_knob</tooltip-id>
289 <property>instrumentation/sextant/bubble-norm</property>
290 </binding>
291 </hovered>
292 </animation>
293
294 <!-- ===================================================================== -->
295 <animation>
296 <type>pick</type>
297 <object-name>5_deg_knob</object-name>
298 <action>
299 <button>0</button>
300 <repeatable>false</repeatable>
301 <binding>
302 <command>nasal</command>
303 <script>RAFmk9sextant.sextant.step_5deg_knob(0);</script>
304 </binding>
305 </action>
306 <hovered>
307 <binding>
308 <command>set-tooltip</command>
309 <label>Click to toggle +5deg setting</label>
310 <tooltip-id>5deg_knob</tooltip-id>
311 </binding>
312 </hovered>
313 </animation>
314
315 <!-- =========================================================================
316 Instrument handling animations.
317 ===================================================================== -->
318
319 <!-- ===================================================================== -->
320 <animation>
321 <type>rotate</type>
322 <property>instrumentation/sextant/view-angle-deg</property>
323 <factor>1.0</factor>
324 <center>
325 <x-m> -0.10 </x-m>
326 <y-m> 0.00 </y-m>
327 <z-m> 0.00 </z-m>
328 </center>
329 <axis>
330 <x> 0.0 </x>
331 <y> 0.3 </y>
332 <z> 1.0 </z>
333 </axis>
334 </animation>
335
336 <!-- ===================================================================== -->
337 <!-- Offset from eye position -->
338 <animation>
339 <type>translate</type>
340 <property>instrumentation/sextant/view-distance-m</property>
341 <axis>
342 <x>-1.0 </x>
343 <y> 0.0 </y>
344 <z> 0.0 </z>
345 </axis>
346 <factor>1.0</factor>
347 </animation>
348
349 <!-- ===================================================================== -->
350 <animation>
351 <type>rotate</type>
352 <property>instrumentation/sextant/offsets/roll-deg</property>
353 <factor>1.0</factor>
354 <center>
355 <x-m> 0.00 </x-m>
356 <y-m> 0.00 </y-m>
357 <z-m> 0.00 </z-m>
358 </center>
359 <axis>
360 <x> 1.0 </x>
361 <y> 0.0 </y>
362 <z> 0.0 </z>
363 </axis>
364 </animation>
365
366 <animation>
367 <type>rotate</type>
368 <property>instrumentation/sextant/offsets/pitch-deg</property>
369 <factor>1.0</factor>
370 <center>
371 <x-m> 0.00 </x-m>
372 <y-m> 0.00 </y-m>
373 <z-m> 0.00 </z-m>
374 </center>
375 <axis>
376 <x> 0.0 </x>
377 <y> 1.0 </y>
378 <z> 0.0 </z>
379 </axis>
380 </animation>
381
382 <animation>
383 <type>rotate</type>
384 <property>instrumentation/sextant/offsets/heading-deg</property>
385 <factor>1.0</factor>
386 <center>
387 <x-m> 0.00 </x-m>
388 <y-m> 0.00 </y-m>
389 <z-m> 0.00 </z-m>
390 </center>
391 <axis>
392 <x> 0.0 </x>
393 <y> 0.0 </y>
394 <z> 1.0 </z>
395 </axis>
396 </animation>
397
398 <!-- ===================================================================== -->
399 <!-- Translations for user's view. -->
400 <animation>
401 <type>translate</type>
402 <property>instrumentation/sextant/offsets/x-m</property>
403 <axis>
404 <x>1</x>
405 <y>0</y>
406 <z>0</z>
407 </axis>
408 <factor>1.0</factor>
409 </animation>
410 <animation>
411 <type>translate</type>
412 <property>instrumentation/sextant/offsets/y-m</property>
413 <axis>
414 <x>0</x>
415 <y>1</y>
416 <z>0</z>
417 </axis>
418 <factor>1.0</factor>
419 </animation>
420 <animation>
421 <type>translate</type>
422 <property>instrumentation/sextant/offsets/z-m</property>
423 <axis>
424 <x>0</x>
425 <y>0</y>
426 <z>1</z>
427 </axis>
428 <factor>1.0</factor>
429 </animation>
430
431 <!-- ===================================================================== -->
432 <animation>
433 <type>pick</type>
434 <object-name>eye_piece</object-name>
435 <action>
436 <button>0</button>
437 <repeatable>false</repeatable>
438 <binding>
439 <command>nasal</command>
440 <script>RAFmk9sextant.toggle_look_through();</script>
441 </binding>
442 </action>
443 <hovered>
444 <binding>
445 <command>set-tooltip</command>
446 <label>Click to enter or exit look through.</label>
447 <tooltip-id>lookthrough</tooltip-id>
448 </binding>
449 </hovered>
450 </animation>
451 <animation>
452 <type>pick</type>
453 <object-name>left_handle</object-name>
454 <object-name>right_handle</object-name>
455 <action>
456 <button>0</button>
457 <repeatable>false</repeatable>
458 <binding>
459 <command>nasal</command>
460 <script>RAFmk9sextant.pick_up();</script>
461 </binding>
462 </action>
463 <hovered>
464 <binding>
465 <command>set-tooltip</command>
466 <label>Click to pick up or put down.</label>
467 <tooltip-id>pickup</tooltip-id>
468 </binding>
469 </hovered>
470 </animation>
471
472 <!-- ===================================================================== -->
473 <!-- External illumination. Do not use on untextured faces. -->
474 <animation>
475 <type>material</type>
476 <object-name>body</object-name>
477 <!-- object-name>eye_piece</object-name>
478 <object-name>bubble_knob</object-name>
479 <object-name>10_setting_knob</object-name>
480 <object-name>5_deg_knob</object-name>
481 <object-name>slow_motion_knob</object-name>
482 <object-name>left_handle</object-name>
483 <object-name>right_handle</object-name -->
484 <emission>
485 <factor-prop alias="../../../params/lighting-norm"/>
486 <red>0.75</red>
487 <green>0.25</green>
488 <blue>0.25</blue>
489 </emission>
490 </animation>
491 <!-- Radium paint(?) and internal illumination. -->
492 <animation>
493 <type>material</type>
494 <object-name>bubble</object-name>
495 <object-name>viewfinder_markings</object-name>
496 <object-name>10_setting_knob_scale</object-name>
497 <object-name>degree_drum</object-name>
498 <object-name>minute_drum</object-name>
499 <object-name>10_mark</object-name>
500 <object-name>minute_mark.001</object-name>
501 <object-name>minute_mark</object-name>
502 <emission>
503 <factor-prop/>
504 <offset>0.70</offset>
505 <red>0.60</red>
506 <green>0.80</green>
507 <blue>0.60</blue>
508 </emission>
509 </animation>
510
511 </PropertyList>