Updated Nordstern: Added a variometer.
[fg:toms-fgdata.git] / Aircraft / Nordstern / Instruments / Variometer / variometer.xml
1 <?xml version="1.0"?>
2 <!--
3   Zeppelin LZ 121 "Nordstern" airship for FlightGear.
4
5   Copyright (C) 2011  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 controlling properties.
11  -->
12  <params>
13   <indicated-speed-fpm>instrumentation/vertical-speed-indicator/indicated-speed-fpm</indicated-speed-fpm>
14   <serviceable>instrumentation/vertical-speed-indicator/serviceable</serviceable>
15  </params>
16
17  <path>variometer.ac</path>
18
19  <offsets>
20   <!-- x/y/z == back/right/up -->
21   <x-m> 0.000 </x-m>
22   <y-m> 0.000 </y-m>
23   <z-m> 0.000 </z-m>
24  </offsets>
25
26  <!-- animation> 
27   <type>material</type>
28   <emission> 
29    <factor-prop>controls/lighting/panel-norm</factor-prop>
30    <red>0.75</red>
31    <green>0.25</green>
32    <blue>0.25</blue>
33   </emission>
34  </animation -->
35
36  <animation>
37   <type>rotate</type>
38   <object-name>red_liquid</object-name>
39   <property>constants/zero</property>
40   <factor>0.0</factor>
41   <offset-deg>-20.0</offset-deg>
42   <center>
43    <x-m>  0.000 </x-m>
44    <y-m>  0.005 </y-m>
45    <z-m>  0.080 </z-m>
46   </center>
47   <axis>
48    <x>1.0</x>
49    <y>0.0</y>
50    <z>0.0</z>
51   </axis>
52  </animation>
53
54  <animation>
55   <type>scale</type>
56   <object-name>red_liquid</object-name>
57   <property alias="../../params/indicated-speed-fpm"/>
58   <x-factor>0.0</x-factor>
59   <x-offset>1.0</x-offset>
60   <y-factor>0.00127</y-factor>
61   <y-offset>1.0</y-offset>
62   <z-factor>0.0</z-factor>
63   <z-offset>1.0</z-offset>
64   <y-min>0.01</y-min>
65   <y-max>1.90</y-max>
66   <center>
67    <x-m> 0.000 </x-m>
68    <y-m> 0.045 </y-m>
69    <z-m> 0.000 </z-m>
70   </center>
71  </animation>
72
73  <!-- If the liquid is gone the instrument is unserviceable. -->
74  <animation>
75   <type>select</type>
76   <object-name>red_liquid</object-name>
77   <condition>
78    <property alias="../../../params/serviceable"/>
79   </condition>
80  </animation>
81
82  <animation>
83   <type>noshadow</type>
84  </animation>
85
86 </PropertyList>