Debian Codegraph @

Aircraft/Generic/DualControl/Instruments/KR87/kr87-1.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- KR-87 ADF receiver
3
4 3d model by Torsten Dreyer
5
6 Adapted for dual control by Anders Gidenstam
7
8 NOTE: kr87.nas MUST be loaded as Nasal module KR87.
9 -->
10 <PropertyList>
11
12 <path>kr87.ac</path>
13 <texture-path>Aircraft/Generic/DualControl/Instruments/KX165/</texture-path>
14
15 <animation>
16 <type>select</type>
17 <object-name>kr87.indicators</object-name>
18 <condition>
19 <property>instrumentation/adf[0]/serviceable</property>
20 <property>instrumentation/adf[0]/power-btn</property>
21 <greater-than>
22 <property>systems/electrical/outputs/adf[0]</property>
23 <value>1</value>
24 </greater-than>
25 </condition>
26 </animation>
27
28 <animation>
29 <type>material</type>
30 <object-name>kr87.knobs.ADF</object-name>
31 <object-name>kr87.knobs.BFO</object-name>
32 <object-name>kr87.knobs.FRQ</object-name>
33 <object-name>kr87.knobs.FLT</object-name>
34 <object-name>kr87.knobs.SET</object-name>
35 <emission>
36 <red-prop>sim/model/instrument-lighting/emission/red</red-prop>
37 <green-prop>sim/model/instrument-lighting/emission/green</green-prop>
38 <blue-prop>sim/model/instrument-lighting/emission/blue</blue-prop>
39 <factor-prop>controls/lighting/instruments-norm</factor-prop>
40 </emission>
41 </animation>
42
43 <animation>
44 <type>select</type>
45 <object-name>kr87.indicators.ANT</object-name>
46 <condition>
47 <not>
48 <property>instrumentation/adf[0]/adf-btn</property>
49 </not>
50 </condition>
51 </animation>
52
53 <animation>
54 <type>select</type>
55 <object-name>kr87.indicators.ADF</object-name>
56 <condition>
57 <property>instrumentation/adf[0]/adf-btn</property>
58 </condition>
59 </animation>
60
61 <animation>
62 <type>select</type>
63 <object-name>kr87.indicators.BFO</object-name>
64 <condition>
65 <property>instrumentation/adf[0]/bfo-btn</property>
66 </condition>
67 </animation>
68
69 <animation>
70 <type>select</type>
71 <object-name>kr87.indicators.FRQ</object-name>
72 <condition>
73 <equals>
74 <property>instrumentation/adf[0]/display-mode</property>
75 <value type="int">0</value>
76 </equals>
77 </condition>
78 </animation>
79
80 <animation>
81 <type>select</type>
82 <object-name>kr87.indicators.FLT</object-name>
83 <condition>
84 <equals>
85 <property>instrumentation/adf[0]/display-mode</property>
86 <value type="int">1</value>
87 </equals>
88 </condition>
89 </animation>
90
91 <animation>
92 <type>select</type>
93 <object-name>kr87.indicators.ET</object-name>
94 <condition>
95 <equals>
96 <property>instrumentation/adf[0]/display-mode</property>
97 <value type="int">2</value>
98 </equals>
99 </condition>
100 </animation>
101
102 <!-- Use FREQ -->
103 <animation>
104 <type>select</type>
105 <object-name>kr87.indicators.Use.1000</object-name>
106 <condition>
107 <greater-than-equals>
108 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
109 <value type="int">1000</value>
110 </greater-than-equals>
111 </condition>
112 </animation>
113
114 <animation>
115 <type>textranslate</type>
116 <object-name>kr87.indicators.Use.1000</object-name>
117 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
118 <step>1000</step>
119 <factor>0.0001</factor>
120 <axis>
121 <x>1</x>
122 <y>0</y>
123 <z>0</z>
124 </axis>
125 </animation>
126
127 <animation>
128 <type>textranslate</type>
129 <object-name>kr87.indicators.Use.100</object-name>
130 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
131 <step>100</step>
132 <factor>0.001</factor>
133 <axis>
134 <x>1</x>
135 <y>0</y>
136 <z>0</z>
137 </axis>
138 </animation>
139
140 <animation>
141 <type>textranslate</type>
142 <object-name>kr87.indicators.Use.10</object-name>
143 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
144 <step>10</step>
145 <factor>0.01</factor>
146 <axis>
147 <x>1</x>
148 <y>0</y>
149 <z>0</z>
150 </axis>
151 </animation>
152
153 <animation>
154 <type>textranslate</type>
155 <object-name>kr87.indicators.Use.1</object-name>
156 <property>instrumentation/adf[0]/frequencies/selected-khz</property>
157 <step>1</step>
158 <factor>0.1</factor>
159 <axis>
160 <x>1</x>
161 <y>0</y>
162 <z>0</z>
163 </axis>
164 </animation>
165
166 <!-- STBY FREQ -->
167 <animation>
168 <condition>
169 <not-equals>
170 <property>instrumentation/adf[0]/display-mode</property>
171 <value type="int">0</value>
172 </not-equals>
173 </condition>
174 <type>select</type>
175 <object-name>kr87.indicators.dots</object-name>
176 </animation>
177
178 <animation>
179 <type>select</type>
180 <object-name>kr87.indicators.Stby.1000</object-name>
181 <condition>
182 <greater-than-equals>
183 <property>instrumentation/adf[0]/right-display</property>
184 <value type="int">1000</value>
185 </greater-than-equals>
186 </condition>
187 </animation>
188
189 <animation>
190 <type>select</type>
191 <object-name>kr87.indicators.Stby.100</object-name>
192 <condition>
193 <greater-than-equals>
194 <property>instrumentation/adf[0]/right-display</property>
195 <value type="int">100</value>
196 </greater-than-equals>
197 </condition>
198 </animation>
199
200 <animation>
201 <type>textranslate</type>
202 <object-name>kr87.indicators.Stby.1000</object-name>
203 <property>instrumentation/adf[0]/right-display</property>
204 <step>1000</step>
205 <factor>0.0001</factor>
206 <axis>
207 <x>1</x>
208 <y>0</y>
209 <z>0</z>
210 </axis>
211 </animation>
212
213 <animation>
214 <type>textranslate</type>
215 <object-name>kr87.indicators.Stby.100</object-name>
216 <property>instrumentation/adf[0]/right-display</property>
217 <step>100</step>
218 <factor>0.001</factor>
219 <axis>
220 <x>1</x>
221 <y>0</y>
222 <z>0</z>
223 </axis>
224 </animation>
225
226 <animation>
227 <type>textranslate</type>
228 <object-name>kr87.indicators.Stby.10</object-name>
229 <property>instrumentation/adf[0]/right-display</property>
230 <step>10</step>
231 <factor>0.01</factor>
232 <axis>
233 <x>1</x>
234 <y>0</y>
235 <z>0</z>
236 </axis>
237 </animation>
238
239 <animation>
240 <type>textranslate</type>
241 <object-name>kr87.indicators.Stby.1</object-name>
242 <property>instrumentation/adf[0]/right-display</property>
243 <step>1</step>
244 <factor>0.1</factor>
245 <axis>
246 <x>1</x>
247 <y>0</y>
248 <z>0</z>
249 </axis>
250 </animation>
251
252 <animation>
253 <type>noshadow</type>
254 </animation>
255
256 <!-- OSG Hotspots for dual control -->
257
258 <animation>
259 <type>pick</type>
260 <object-name>kr87.knobs.FRQ</object-name>
261 <action>
262 <button>0</button>
263 <repeatable>false</repeatable>
264 <binding>
265 <command>nasal</command>
266 <script>KR87.swap(0);</script>
267 </binding>
268 </action>
269 </animation>
270
271 <animation>
272 <type>pick</type>
273 <object-name>kr87.knobs.FRQOuter</object-name>
274 <action>
275 <button>0</button>
276 <repeatable>true</repeatable>
277 <interval-sec>0.2</interval-sec>
278 <binding>
279 <command>nasal</command>
280 <script>KR87.adjust_frequency(0, 100);</script>
281 </binding>
282 </action>
283 <action>
284 <button>1</button>
285 <repeatable>true</repeatable>
286 <interval-sec>0.2</interval-sec>
287 <binding>
288 <command>nasal</command>
289 <script>KR87.adjust_frequency(0, -100);</script>
290 </binding>
291 </action>
292 <action>
293 <button>3</button>
294 <repeatable>false</repeatable>
295 <binding>
296 <command>nasal</command>
297 <script>KR87.adjust_frequency(0, -100.0);</script>
298 </binding>
299 </action>
300 <action>
301 <button>4</button>
302 <repeatable>false</repeatable>
303 <binding>
304 <command>nasal</command>
305 <script>KR87.adjust_frequency(0, 100.0);</script>
306 </binding>
307 </action>
308 </animation>
309
310 <animation>
311 <type>pick</type>
312 <object-name>kr87.knobs.FRQInner</object-name>
313 <action>
314 <button>0</button>
315 <repeatable>true</repeatable>
316 <interval-sec>0.2</interval-sec>
317 <binding>
318 <command>nasal</command>
319 <script>KR87.adjust_frequency(0, 1.0);</script>
320 </binding>
321 </action>
322 <action>
323 <button>1</button>
324 <repeatable>true</repeatable>
325 <interval-sec>0.2</interval-sec>
326 <binding>
327 <command>nasal</command>
328 <script>KR87.adjust_frequency(0, -1.0);</script>
329 </binding>
330 </action>
331 <action>
332 <button>3</button>
333 <repeatable>false</repeatable>
334 <binding>
335 <command>nasal</command>
336 <script>KR87.adjust_frequency(0, -1.0);</script>
337 </binding>
338 </action>
339 <action>
340 <button>4</button>
341 <repeatable>false</repeatable>
342 <binding>
343 <command>nasal</command>
344 <script>KR87.adjust_frequency(0, 1.0);</script>
345 </binding>
346 </action>
347 </animation>
348
349 <animation>
350 <type>pick</type>
351 <object-name>kr87.knobs.BFO</object-name>
352 <action>
353 <button>0</button>
354 <repeatable>false</repeatable>
355 <binding>
356 <command>nasal</command>
357 <script>KR87.toggle_BFO(0);</script>
358 </binding>
359 </action>
360 </animation>
361
362 </PropertyList>