Debian Codegraph @

Aircraft/Instruments-3d/ar-6201/ar-6201.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!-- Becker AR-6201 simulation by Benedikt Wolf (D-ECHO)
3 thanks to: Gilberto Agostinho (texture work)
4 WooT (AR3201 that was used as a base)
5 Joshua Davidson (canvas basic structure from A320)
6
7 #### Version 05/2020
8 -->
9 <PropertyList>
10 <name>ar-6201</name>
11 <path>ar-6201.ac</path>
12
13 <animation>
14 <type>material</type>
15 <object-name>ar6201.display</object-name>
16 <emission>
17 <red>1</red>
18 <green>1</green>
19 <blue>1</blue>
20 <factor-prop>/instrumentation/comm[0]/brightness</factor-prop>
21 </emission>
22 </animation>
23
24 <effect>
25 <inherits-from>Effects/model-interior-display</inherits-from>
26 <parameters>
27 <dirt-factor>1.0</dirt-factor>
28 <contrast>0.75</contrast>
29 </parameters>
30 <object-name>ar6201.display</object-name>
31 </effect>
32
33 <animation>
34 <type>pick</type>
35 <object-name>mode</object-name>
36 <action>
37 <button>0</button>
38 <binding>
39 <command>property-assign</command>
40 <property>/instrumentation/comm[0]/mode-pressed</property>
41 <value>1</value>
42 </binding>
43 <binding>
44 <command>nasal</command>
45 <script>
46 ar6201.modepressed();
47 </script>
48 </binding>
49 <mod-up>
50 <binding>
51 <command>property-assign</command>
52 <property>/instrumentation/comm[0]/mode-pressed</property>
53 <value>0</value>
54 </binding>
55 </mod-up>
56 </action>
57 </animation>
58 <animation>
59 <type>pick</type>
60 <object-name>swap.scan</object-name>
61 <action>
62 <button>0</button>
63 <binding>
64 <command>property-assign</command>
65 <property>/instrumentation/comm[0]/swap-scan-pressed</property>
66 <value>1</value>
67 </binding>
68 <binding>
69 <command>nasal</command>
70 <script>
71 ar6201.swapscanpressed();
72 </script>
73 </binding>
74 <mod-up>
75 <binding>
76 <command>property-assign</command>
77 <property>/instrumentation/comm[0]/swap-scan-pressed</property>
78 <value>0</value>
79 </binding>
80 </mod-up>
81 </action>
82 </animation>
83 <animation>
84 <type>translate</type>
85 <object-name>swap.scan</object-name>
86 <property>/instrumentation/comm[0]/swap-scan-pressed</property>
87 <axis>
88 <x>1</x>
89 </axis>
90 <factor>-0.0005</factor>
91 </animation>
92 <animation>
93 <type>pick</type>
94 <object-name>sql.ic</object-name>
95 <action>
96 <button>0</button>
97 <binding>
98 <command>property-assign</command>
99 <property>/instrumentation/comm[0]/sql-ic-pressed</property>
100 <value>1</value>
101 </binding>
102 <binding>
103 <command>nasal</command>
104 <script>
105 ar6201.sqlicpressed();
106 </script>
107 </binding>
108 <mod-up>
109 <binding>
110 <command>property-assign</command>
111 <property>/instrumentation/comm[0]/sql-ic-pressed</property>
112 <value>0</value>
113 </binding>
114 </mod-up>
115 </action>
116 </animation>
117 <animation>
118 <type>translate</type>
119 <object-name>sql.ic</object-name>
120 <property>/instrumentation/comm[0]/sql-ic-pressed</property>
121 <axis>
122 <x>1</x>
123 </axis>
124 <factor>-0.0005</factor>
125 </animation>
126 <animation>
127 <type>pick</type>
128 <object-name>store</object-name>
129 <action>
130 <button>0</button>
131 <binding>
132 <command>property-assign</command>
133 <property>/instrumentation/comm[0]/channel-menu</property>
134 <value>2</value>
135 </binding>
136 <binding>
137 <command>property-assign</command>
138 <property>/instrumentation/comm[0]/channel-menu-pressed</property>
139 <value>1</value>
140 </binding>
141 <mod-up>
142 <binding>
143 <command>property-assign</command>
144 <property>/instrumentation/comm[0]/channel-menu-pressed</property>
145 <value>0</value>
146 </binding>
147 </mod-up>
148 </action>
149 </animation>
150 <animation>
151 <type>translate</type>
152 <object-name>store</object-name>
153 <property>/instrumentation/comm[0]/channel-menu-pressed</property>
154 <axis>
155 <x>1</x>
156 </axis>
157 <factor>-0.0005</factor>
158 </animation>
159 <!-- frequency -->
160 <animation>
161 <type>pick</type>
162 <object-name>frq_knob</object-name>
163 <action>
164 <button>0</button>
165 <binding>
166 <condition>
167 <equals>
168 <property>/instrumentation/comm[0]/pilot-menu</property>
169 <value>0</value>
170 </equals>
171 </condition>
172 <command>property-cycle</command>
173 <property>/instrumentation/comm[0]/current-change</property>
174 <value>1</value>
175 <value>2</value>
176 <value>3</value>
177 <value>0</value>
178 </binding>
179 <binding>
180 <condition>
181 <not-equals>
182 <property>/instrumentation/comm[0]/pilot-menu</property>
183 <value>0</value>
184 </not-equals>
185 </condition>
186 <command>property-cycle</command>
187 <property>/instrumentation/comm[0]/pilot-menu</property>
188 <value>1</value>
189 <value>2</value>
190 </binding>
191 <binding>
192 <condition>
193 <equals>
194 <property>/instrumentation/comm[0]/channel-menu</property>
195 <value>1</value>
196 </equals>
197 <equals>
198 <property>/instrumentation/comm[0]/pilot-menu</property>
199 <value>0</value>
200 </equals>
201 </condition>
202 <command>nasal</command>
203 <script>ar6201.applySelectedFrequency();
204 </script>
205 </binding>
206 <binding>
207 <condition>
208 <equals>
209 <property>/instrumentation/comm[0]/channel-menu</property>
210 <value>2</value>
211 </equals>
212 <equals>
213 <property>/instrumentation/comm[0]/pilot-menu</property>
214 <value>0</value>
215 </equals>
216 </condition>
217 <command>nasal</command>
218 <script>ar6201.saveFrequency();
219 </script>
220 </binding>
221 <binding>
222 <command>property-toggle</command>
223 <property>/instrumentation/comm[0]/frq-knob-pushed</property>
224 </binding>
225 <mod-up>
226 <binding>
227 <command>property-toggle</command>
228 <property>/instrumentation/comm[0]/frq-knob-pushed</property>
229 </binding>
230 </mod-up>
231 </action>
232 <action>
233 <button>3</button>
234 <binding>
235 <condition>
236 <equals>
237 <property>/instrumentation/comm[0]/current-change</property>
238 <value>0</value>
239 </equals>
240 </condition>
241 <command>property-assign</command>
242 <property>/instrumentation/comm[0]/current-change</property>
243 <value>1</value>
244 </binding>
245 <binding>
246 <condition>
247 <equals>
248 <property>/instrumentation/comm[0]/current-change</property>
249 <value>1</value>
250 </equals>
251 </condition>
252 <command>property-adjust</command>
253 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
254 <mask>integer</mask>
255 <step>1</step>
256 <min>118</min>
257 <max>136</max>
258 <resolution>1</resolution>
259 <wrap>true</wrap>
260 </binding>
261 <binding>
262 <condition>
263 <equals>
264 <property>/instrumentation/comm[0]/current-change</property>
265 <value>2</value>
266 </equals>
267 </condition>
268 <command>property-adjust</command>
269 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
270 <mask>decimal</mask>
271 <step>0.1</step>
272 <min>0</min>
273 <max>1</max>
274 <resolution>0.1</resolution>
275 <wrap>true</wrap>
276 </binding>
277 <binding>
278 <condition>
279 <equals>
280 <property>/instrumentation/comm[0]/current-change</property>
281 <value>3</value>
282 </equals>
283 </condition>
284 <command>property-adjust</command>
285 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
286 <mask>decimal</mask>
287 <step>0.008333</step>
288 <min>0</min>
289 <max>1</max>
290 <resolution>0.008333</resolution>
291 <wrap>true</wrap>
292 </binding>
293 <binding>
294 <condition>
295 <equals>
296 <property>/instrumentation/comm[0]/pilot-menu</property>
297 <value>1</value>
298 </equals>
299 </condition>
300 <command>property-adjust</command>
301 <property>instrumentation/comm[0]/brightness</property>
302 <step>0.05</step>
303 <min>0</min>
304 <max>1</max>
305 <wrap>false</wrap>
306 </binding>
307 <binding>
308 <condition>
309 <equals>
310 <property>/instrumentation/comm[0]/pilot-menu</property>
311 <value>2</value>
312 </equals>
313 </condition>
314 <command>property-adjust</command>
315 <property>instrumentation/comm[0]/squelch-lim</property>
316 <step>1</step>
317 <min>6</min>
318 <max>26</max>
319 <wrap>false</wrap>
320 </binding>
321 <binding>
322 <condition>
323 <greater-than-equals>
324 <property>/instrumentation/comm[0]/channel-menu</property>
325 <value>1</value>
326 </greater-than-equals>
327 </condition>
328 <command>property-adjust</command>
329 <property>instrumentation/comm[0]/selected-channel</property>
330 <step>1</step>
331 <min>1</min>
332 <max>15</max>
333 <wrap>true</wrap>
334 </binding>
335 <binding>
336 <command>property-adjust</command>
337 <property>instrumentation/comm[0]/freq-knob</property>
338 <step>5</step>
339 </binding>
340 </action>
341 <action>
342 <button>4</button>
343 <binding>
344 <condition>
345 <equals>
346 <property>/instrumentation/comm[0]/current-change</property>
347 <value>0</value>
348 </equals>
349 </condition>
350 <command>property-assign</command>
351 <property>/instrumentation/comm[0]/current-change</property>
352 <value>1</value>
353 </binding>
354 <binding>
355 <condition>
356 <equals>
357 <property>/instrumentation/comm[0]/current-change</property>
358 <value>1</value>
359 </equals>
360 </condition>
361 <command>property-adjust</command>
362 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
363 <mask>integer</mask>
364 <step>-1</step>
365 <min>118</min>
366 <max>136</max>
367 <resolution>1</resolution>
368 <wrap>true</wrap>
369 </binding>
370 <binding>
371 <condition>
372 <equals>
373 <property>/instrumentation/comm[0]/current-change</property>
374 <value>2</value>
375 </equals>
376 </condition>
377 <command>property-adjust</command>
378 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
379 <mask>decimal</mask>
380 <step>-0.1</step>
381 <min>0</min>
382 <max>1</max>
383 <resolution>0.1</resolution>
384 <wrap>true</wrap>
385 </binding>
386 <binding>
387 <condition>
388 <equals>
389 <property>/instrumentation/comm[0]/current-change</property>
390 <value>3</value>
391 </equals>
392 </condition>
393 <command>property-adjust</command>
394 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
395 <mask>decimal</mask>
396 <step>-0.008333</step>
397 <min>0</min>
398 <max>1</max>
399 <resolution>0.008333</resolution>
400 <wrap>true</wrap>
401 </binding>
402 <binding>
403 <condition>
404 <equals>
405 <property>/instrumentation/comm[0]/pilot-menu</property>
406 <value>1</value>
407 </equals>
408 </condition>
409 <command>property-adjust</command>
410 <property>instrumentation/comm[0]/brightness</property>
411 <step>-0.05</step>
412 <min>0</min>
413 <max>1</max>
414 <wrap>false</wrap>
415 </binding>
416 <binding>
417 <condition>
418 <equals>
419 <property>/instrumentation/comm[0]/pilot-menu</property>
420 <value>2</value>
421 </equals>
422 </condition>
423 <command>property-adjust</command>
424 <property>instrumentation/comm[0]/squelch-lim</property>
425 <step>-1</step>
426 <min>6</min>
427 <max>26</max>
428 <wrap>false</wrap>
429 </binding>
430 <binding>
431 <condition>
432 <greater-than-equals>
433 <property>/instrumentation/comm[0]/channel-menu</property>
434 <value>1</value>
435 </greater-than-equals>
436 </condition>
437 <command>property-adjust</command>
438 <property>instrumentation/comm[0]/selected-channel</property>
439 <step>-1</step>
440 <min>1</min>
441 <max>15</max>
442 <wrap>true</wrap>
443 </binding>
444 <binding>
445 <command>property-adjust</command>
446 <property>instrumentation/comm[0]/freq-knob</property>
447 <step>-5</step>
448 </binding>
449 </action>
450 </animation>
451 <animation>
452 <type>rotate</type>
453 <object-name>frq_knob</object-name>
454 <property>instrumentation/comm[0]/freq-knob</property>
455 <center>
456 <y-m>0.011</y-m>
457 <z-m>-0.01666</z-m>
458 </center>
459 <axis>
460 <x>-1</x>
461 <y>0</y>
462 <z>0</z>
463 </axis>
464 </animation>
465 <animation>
466 <type>translate</type>
467 <object-name>frq_knob</object-name>
468 <property>instrumentation/comm[0]/frq-knob-pushed</property>
469 <factor>-0.001</factor>
470 <axis>
471 <x>1</x>
472 </axis>
473 </animation>
474
475
476
477 <!-- Volume -->
478 <animation>
479 <type>knob</type>
480 <object-name>vol_knob</object-name>
481 <property>instrumentation/comm[0]/volume</property>
482 <factor>140</factor>
483 <center>
484 <y-m>-0.01521</y-m>
485 <z-m>-0.0166</z-m>
486 </center>
487 <axis>
488 <x>-1</x>
489 <y>0</y>
490 <z>0</z>
491 </axis>
492 <action>
493 <binding>
494 <command>property-adjust</command>
495 <property>/instrumentation/comm[0]/volume</property>
496 <factor>0.05</factor>
497 <min>0</min>
498 <max>1</max>
499 <wrap>false</wrap>
500 </binding>
501 </action>
502 </animation>
503
504 </PropertyList>