Debian Codegraph @

Aircraft/Instruments-3d/kfc200/kas297.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 KAS 297 ALTITUDE SELECTOR
4 Syd Adams
5
6 *** requires kfc200.nas to run ***
7 -->
8 <PropertyList>
9
10 <path>kas297.ac</path>
11
12 <animation>
13 <type>material</type>
14 <object-name>Arm.btn</object-name>
15 <object-name>Set.knob</object-name>
16 <emission>
17 <red>0.028</red>
18 <green>0.014</green>
19 <blue>0.007</blue>
20 <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
21 </emission>
22 </animation>
23
24 <animation>
25 <type>select</type>
26 <object-name>altmsg</object-name>
27 <object-name>altmsg.001</object-name>
28 <object-name>altmsg.002</object-name>
29 <object-name>altmsg.003</object-name>
30 <object-name>altmsg.004</object-name>
31 <condition>
32 <greater-than>
33 <property>systems/electrical/volts</property>
34 <value>1</value>
35 </greater-than>
36 </condition>
37 </animation>
38
39
40 <animation>
41 <type>select</type>
42 <object-name>Alert.msg</object-name>
43 <condition>
44 <and>
45 <property>/instrumentation/kfc200/alt-alert</property>
46 <greater-than>
47 <property>systems/electrical/volts</property>
48 <value>1</value>
49 </greater-than>
50 </and>
51 </condition>
52 </animation>
53
54 <animation>
55 <type>select</type>
56 <object-name>Arm.msg</object-name>
57 <condition>
58 <and>
59 <equals>
60 <property>/instrumentation/kfc200/vnav</property>
61 <value>1</value>
62 </equals>
63 <greater-than>
64 <property>systems/electrical/volts</property>
65 <value>1</value>
66 </greater-than>
67 </and>
68 </condition>
69 </animation>
70
71 <!-- Altitude Select -->
72
73 <animation>
74 <type>textranslate</type>
75 <object-name>altmsg</object-name>
76 <property>instrumentation/kfc200/alt-preset</property>
77 <factor>0.00001</factor>
78 <step>10000</step>
79 <axis>
80 <x>0</x>
81 <y>1</y>
82 <z>0</z>
83 </axis>
84 </animation>
85
86 <animation>
87 <type>textranslate</type>
88 <object-name>altmsg.001</object-name>
89 <property>instrumentation/kfc200/alt-preset</property>
90 <factor>0.0001</factor>
91 <step>1000</step>
92 <axis>
93 <x>0</x>
94 <y>1</y>
95 <z>0</z>
96 </axis>
97 </animation>
98
99 <animation>
100 <type>textranslate</type>
101 <object-name>altmsg.002</object-name>
102 <property>instrumentation/kfc200/alt-preset</property>
103 <factor>0.001</factor>
104 <step>100</step>
105 <axis>
106 <x>0</x>
107 <y>1</y>
108 <z>0</z>
109 </axis>
110 </animation>
111
112 <animation>
113 <type>textranslate</type>
114 <object-name>altmsg.003</object-name>
115 <property>instrumentation/kfc200/alt-preset</property>
116 <factor>0.01</factor>
117 <step>10</step>
118 <axis>
119 <x>0</x>
120 <y>1</y>
121 <z>0</z>
122 </axis>
123 </animation>
124
125 <animation>
126 <type>textranslate</type>
127 <object-name>altmsg.004</object-name>
128 <property>instrumentation/kfc200/alt-preset</property>
129 <factor>0.1</factor>
130 <step>1</step>
131 <axis>
132 <x>0</x>
133 <y>1</y>
134 <z>0</z>
135 </axis>
136 </animation>
137
138 <!-- OSG animations
139
140 <animation>
141 <type>pick</type>
142 <object-name>Alt.decrease</object-name>
143 <action>
144 <button>0</button>
145 <repeatable>true</repeatable>
146 <binding>
147 <command>property-adjust</command>
148 <property>instrumentation/kfc200/alt-preset</property>
149 <step>-100</step>
150 <min>0.0</min>
151 <max>99999.0</max>
152 <wrap>false</wrap>
153 </binding>
154 </action>
155 </animation>
156
157 <animation>
158 <type>pick</type>
159 <object-name>Alt.decrease</object-name>
160 <action>
161 <button>1</button>
162 <repeatable>true</repeatable>
163 <binding>
164 <command>property-adjust</command>
165 <property>instrumentation/kfc200/alt-preset</property>
166 <step>-1000</step>
167 <min>0.0</min>
168 <max>99999.0</max>
169 <wrap>false</wrap>
170 </binding>
171 </action>
172 </animation>
173
174 <animation>
175 <type>pick</type>
176 <object-name>Alt.increase</object-name>
177 <action>
178 <button>0</button>
179 <repeatable>true</repeatable>
180 <binding>
181 <command>property-adjust</command>
182 <property>instrumentation/kfc200/alt-preset</property>
183 <step>100</step>
184 <min>0.0</min>
185 <max>99999.0</max>
186 <wrap>false</wrap>
187 </binding>
188 </action>
189 </animation>
190
191 <animation>
192 <type>pick</type>
193 <object-name>Alt.increase</object-name>
194 <action>
195 <button>1</button>
196 <repeatable>true</repeatable>
197 <binding>
198 <command>property-adjust</command>
199 <property>instrumentation/kfc200/alt-preset</property>
200 <step>1000</step>
201 <min>0.0</min>
202 <max>99999.0</max>
203 <wrap>false</wrap>
204 </binding>
205 </action>
206 </animation>
207
208 <animation>
209 <type>pick</type>
210 <object-name>Alt.arm</object-name>
211 <action>
212 <button>0</button>
213 <repeatable>false</repeatable>
214 <binding>
215 <command>nasal</command>
216 <script>
217 if(getprop("instrumentation/kfc200/vnav")!= 1){
218 setprop("instrumentation/kfc200/vnav",1);
219 setprop("autopilot/settings/target-altitude-ft",getprop("instrumentation/kfc200/alt-preset"));
220 }else{
221 setprop("instrumentation/kfc200/vnav",0);
222 }
223 </script>
224 </binding>
225 </action>
226 </animation>
227 -->
228
229 </PropertyList>