504 lines
12 KiB
XML
504 lines
12 KiB
XML
<?xml version="1.0"?>
|
|
<!-- Becker AR-6201 simulation by Benedikt Wolf (D-ECHO)
|
|
thanks to: Gilberto Agostinho (texture work)
|
|
WooT (AR3201 that was used as a base)
|
|
Joshua Davidson (canvas basic structure from A320)
|
|
|
|
#### Version 05/2020
|
|
-->
|
|
<PropertyList>
|
|
<name>ar-6201</name>
|
|
<path>ar-6201.ac</path>
|
|
|
|
<animation>
|
|
<type>material</type>
|
|
<object-name>ar6201.display</object-name>
|
|
<emission>
|
|
<red>1</red>
|
|
<green>1</green>
|
|
<blue>1</blue>
|
|
<factor-prop>/instrumentation/comm[0]/brightness</factor-prop>
|
|
</emission>
|
|
</animation>
|
|
|
|
<effect>
|
|
<inherits-from>Effects/model-interior-display</inherits-from>
|
|
<parameters>
|
|
<dirt-factor>1.0</dirt-factor>
|
|
<contrast>0.75</contrast>
|
|
</parameters>
|
|
<object-name>ar6201.display</object-name>
|
|
</effect>
|
|
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>mode</object-name>
|
|
<action>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/mode-pressed</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
ar6201.modepressed();
|
|
</script>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/mode-pressed</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
</animation>
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>swap.scan</object-name>
|
|
<action>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/swap-scan-pressed</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
ar6201.swapscanpressed();
|
|
</script>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/swap-scan-pressed</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
</animation>
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>swap.scan</object-name>
|
|
<property>/instrumentation/comm[0]/swap-scan-pressed</property>
|
|
<axis>
|
|
<x>1</x>
|
|
</axis>
|
|
<factor>-0.0005</factor>
|
|
</animation>
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>sql.ic</object-name>
|
|
<action>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/sql-ic-pressed</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
ar6201.sqlicpressed();
|
|
</script>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/sql-ic-pressed</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
</animation>
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>sql.ic</object-name>
|
|
<property>/instrumentation/comm[0]/sql-ic-pressed</property>
|
|
<axis>
|
|
<x>1</x>
|
|
</axis>
|
|
<factor>-0.0005</factor>
|
|
</animation>
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>store</object-name>
|
|
<action>
|
|
<button>0</button>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/channel-menu</property>
|
|
<value>2</value>
|
|
</binding>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/channel-menu-pressed</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/channel-menu-pressed</property>
|
|
<value>0</value>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
</animation>
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>store</object-name>
|
|
<property>/instrumentation/comm[0]/channel-menu-pressed</property>
|
|
<axis>
|
|
<x>1</x>
|
|
</axis>
|
|
<factor>-0.0005</factor>
|
|
</animation>
|
|
<!-- frequency -->
|
|
<animation>
|
|
<type>pick</type>
|
|
<object-name>frq_knob</object-name>
|
|
<action>
|
|
<button>0</button>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-cycle</command>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>1</value>
|
|
<value>2</value>
|
|
<value>3</value>
|
|
<value>0</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<not-equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>0</value>
|
|
</not-equals>
|
|
</condition>
|
|
<command>property-cycle</command>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>1</value>
|
|
<value>2</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/channel-menu</property>
|
|
<value>1</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>nasal</command>
|
|
<script>ar6201.applySelectedFrequency();
|
|
</script>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/channel-menu</property>
|
|
<value>2</value>
|
|
</equals>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>nasal</command>
|
|
<script>ar6201.saveFrequency();
|
|
</script>
|
|
</binding>
|
|
<binding>
|
|
<command>property-toggle</command>
|
|
<property>/instrumentation/comm[0]/frq-knob-pushed</property>
|
|
</binding>
|
|
<mod-up>
|
|
<binding>
|
|
<command>property-toggle</command>
|
|
<property>/instrumentation/comm[0]/frq-knob-pushed</property>
|
|
</binding>
|
|
</mod-up>
|
|
</action>
|
|
<action>
|
|
<button>3</button>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
|
|
<mask>integer</mask>
|
|
<step>1</step>
|
|
<min>118</min>
|
|
<max>136</max>
|
|
<resolution>1</resolution>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
|
|
<mask>decimal</mask>
|
|
<step>0.1</step>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<resolution>0.1</resolution>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>3</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
|
|
<mask>decimal</mask>
|
|
<step>0.008333</step>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<resolution>0.008333</resolution>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/brightness</property>
|
|
<step>0.05</step>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/squelch-lim</property>
|
|
<step>1</step>
|
|
<min>6</min>
|
|
<max>26</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than-equals>
|
|
<property>/instrumentation/comm[0]/channel-menu</property>
|
|
<value>1</value>
|
|
</greater-than-equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/selected-channel</property>
|
|
<step>1</step>
|
|
<min>1</min>
|
|
<max>15</max>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/freq-knob</property>
|
|
<step>5</step>
|
|
</binding>
|
|
</action>
|
|
<action>
|
|
<button>4</button>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>0</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-assign</command>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>1</value>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
|
|
<mask>integer</mask>
|
|
<step>-1</step>
|
|
<min>118</min>
|
|
<max>136</max>
|
|
<resolution>1</resolution>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
|
|
<mask>decimal</mask>
|
|
<step>-0.1</step>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<resolution>0.1</resolution>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/current-change</property>
|
|
<value>3</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/frequencies/standby-mhz</property>
|
|
<mask>decimal</mask>
|
|
<step>-0.008333</step>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<resolution>0.008333</resolution>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>1</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/brightness</property>
|
|
<step>-0.05</step>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<equals>
|
|
<property>/instrumentation/comm[0]/pilot-menu</property>
|
|
<value>2</value>
|
|
</equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/squelch-lim</property>
|
|
<step>-1</step>
|
|
<min>6</min>
|
|
<max>26</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
<binding>
|
|
<condition>
|
|
<greater-than-equals>
|
|
<property>/instrumentation/comm[0]/channel-menu</property>
|
|
<value>1</value>
|
|
</greater-than-equals>
|
|
</condition>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/selected-channel</property>
|
|
<step>-1</step>
|
|
<min>1</min>
|
|
<max>15</max>
|
|
<wrap>true</wrap>
|
|
</binding>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>instrumentation/comm[0]/freq-knob</property>
|
|
<step>-5</step>
|
|
</binding>
|
|
</action>
|
|
</animation>
|
|
<animation>
|
|
<type>rotate</type>
|
|
<object-name>frq_knob</object-name>
|
|
<property>instrumentation/comm[0]/freq-knob</property>
|
|
<center>
|
|
<y-m>0.011</y-m>
|
|
<z-m>-0.01666</z-m>
|
|
</center>
|
|
<axis>
|
|
<x>-1</x>
|
|
<y>0</y>
|
|
<z>0</z>
|
|
</axis>
|
|
</animation>
|
|
<animation>
|
|
<type>translate</type>
|
|
<object-name>frq_knob</object-name>
|
|
<property>instrumentation/comm[0]/frq-knob-pushed</property>
|
|
<factor>-0.001</factor>
|
|
<axis>
|
|
<x>1</x>
|
|
</axis>
|
|
</animation>
|
|
|
|
|
|
|
|
<!-- Volume -->
|
|
<animation>
|
|
<type>knob</type>
|
|
<object-name>vol_knob</object-name>
|
|
<property>instrumentation/comm[0]/volume</property>
|
|
<factor>140</factor>
|
|
<center>
|
|
<y-m>-0.01521</y-m>
|
|
<z-m>-0.0166</z-m>
|
|
</center>
|
|
<axis>
|
|
<x>-1</x>
|
|
<y>0</y>
|
|
<z>0</z>
|
|
</axis>
|
|
<action>
|
|
<binding>
|
|
<command>property-adjust</command>
|
|
<property>/instrumentation/comm[0]/volume</property>
|
|
<factor>0.05</factor>
|
|
<min>0</min>
|
|
<max>1</max>
|
|
<wrap>false</wrap>
|
|
</binding>
|
|
</action>
|
|
</animation>
|
|
|
|
</PropertyList>
|