<?xml version="1.0" encoding="ISO-8859-1"?>

<!--    RADIO MANAGEMENT UNIT  1 -->
<PropertyList>

<path>rcu.ac</path>

  <animation>
    <type>material</type>
    <object-name>RCU.base</object-name>
    <emission>
      <red>1</red>
      <green>1</green>
      <blue>1</blue>
      <factor-prop>controls/lighting/flood-norm</factor-prop>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>RCU.sq</object-name>
    <object-name>RCU.swap</object-name>
    <object-name>RCU.navAudio</object-name>
    <emission>
      <red>1</red>
      <green>1</green>
      <blue>1</blue>
      <factor-prop>controls/lighting/el-norm</factor-prop>
    </emission>
  </animation>

<!--#########  Hotspots ########## -->

    <animation>
        <type>translate</type>
        <object-name>RCU.sq</object-name>	
        <property>instrumentation/rcu/squelch</property>
				<factor>0.0016</factor>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>RCU.sq</object-name>
        <visible>true</visible>
        <action>
          <button>0</button>
          <repeatable>false</repeatable>
          <binding>
              <command>property-toggle</command>
              <property>instrumentation/rcu/squelch</property>
          </binding>
					<binding>
					    <command>property-toggle</command>
					    <property>sim/sound/click</property>
					</binding>
        </action>
				<hovered>
			    <binding>
		        <command>set-tooltip</command>
		        <tooltip-id>RcuSq</tooltip-id>
		        <label>Squelch : %s</label>
			      <property>instrumentation/rcu/sq</property>
		        <mapping>on-off</mapping>
			    </binding>
				</hovered>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>RCU.swap</object-name>	
        <property>instrumentation/rcu/swap</property>
				<factor>0.0016</factor>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>RCU.swap</object-name>
        <visible>true</visible>
        <action>
          <button>0</button>
          <repeatable>false</repeatable>
          <binding>
              <command>property-toggle</command>
              <property>instrumentation/rcu/swap</property>
          </binding>
          <binding>
              <command>property-cycle</command>
              <property>instrumentation/rcu/selected</property>
							<value>COM</value>
							<value>NAV</value>
          </binding>
					<binding>
					    <command>property-toggle</command>
					    <property>sim/sound/click</property>
					</binding>
					<mod-up>
	          <binding>
	              <command>property-toggle</command>
	              <property>instrumentation/rcu/swap</property>
	          </binding>
					</mod-up>
        </action>
				<hovered>
			    <binding>
		        <command>set-tooltip</command>
		        <tooltip-id>RcuSwap</tooltip-id>
		        <label>Swap : %s</label>
			      <property>instrumentation/rcu/selected</property>
		        <mapping>nasal</mapping>
						<script>
							var modes = ['COM','NAV'];
							return modes[arg[0]];
						</script>
			    </binding>
				</hovered>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>RCU.navAudio</object-name>	
        <property>instrumentation/rcu/nav-audio</property>
				<factor>0.0016</factor>
        <axis>
            <x>-1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>RCU.navAudio</object-name>
        <visible>true</visible>
        <action>
          <button>0</button>
          <repeatable>true</repeatable>
          <binding>
            <command>property-toggle</command>
            <property>instrumentation/rcu/nav-audio</property>
          </binding>
          <binding>
						<condition>
							<and>
								<not>
			            <property>instrumentation/rcu/mode</property>
								</not>
		            <property>instrumentation/rcu/nav-audio</property>
							</and>
						</condition>
            <command>property-assign</command>
            	<property>instrumentation/nav/volume</property>
							<value>1</value>
          </binding>
          <binding>
						<condition>
							<and>
		            <property>instrumentation/rcu/mode</property>
		            <property>instrumentation/rcu/nav-audio</property>
							</and>
						</condition>
            <command>property-assign</command>
            	<property>instrumentation/nav[1]/volume</property>
							<value>1</value>
          </binding>
          <binding>
						<condition>
							<not>
		            <property>instrumentation/rcu/nav-audio</property>
							</not>
						</condition>
              <command>property-assign</command>
              	<property>instrumentation/nav/volume</property>
								<value>0</value>
          </binding>
          <binding>
						<condition>
							<not>
		            <property>instrumentation/rcu/nav-audio</property>
							</not>
						</condition>
              <command>property-assign</command>
              	<property>instrumentation/nav[1]/volume</property>
								<value>0</value>
          </binding>
					<binding>
					    <command>property-toggle</command>
					    <property>sim/sound/click</property>
					</binding>
        </action>
				<hovered>
			    <binding>
		        <command>set-tooltip</command>
		        <tooltip-id>RcuNa</tooltip-id>
		        <label>Nav Audio : %s</label>
			      <property>instrumentation/rcu/nav-audio</property>
		        <mapping>on-off</mapping>
			    </binding>
				</hovered>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RCU.mode</object-name>
        <property>instrumentation/rcu/mode</property>
        <factor>75</factor>
        <center>
            <x-m>0.0</x-m>
            <y-m>0.2602</y-m>
            <z-m>0.2835</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RCU.knob</object-name>
        <property>instrumentation/rcu/knob</property>
        <factor>-270</factor>
        <center>
            <x-m>0.0</x-m>
            <y-m>0.2902</y-m>
            <z-m>0.2841</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>RCU.knob1</object-name>
        <property>instrumentation/rcu/knob1</property>
        <factor>-270</factor>
        <center>
            <x-m>0.0</x-m>
            <y-m>0.2902</y-m>
            <z-m>0.2841</z-m>
        </center>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
		  <type>pick</type>
		  <object-name>RCU.mode</object-name>
		  <visible>true</visible>
		  <action>
		    <button>0</button>
		    <repeatable>true</repeatable>
				<interval-sec>0.1</interval-sec>
		    <binding>
          <command>property-cycle</command>
					<property>instrumentation/rcu/mode</property>
					<value>0</value>
					<value>1</value>
	      </binding>
				<binding>
				    <command>property-toggle</command>
				    <property>sim/sound/click</property>
				</binding>
			</action>
				<hovered>
			    <binding>
		        <command>set-tooltip</command>
		        <tooltip-id>RcuMode</tooltip-id>
		        <label>Mode : %s</label>
			      <property>instrumentation/rcu/mode</property>
		        <mapping>nasal</mapping>
						<script>
							var modes = ['COM1/NAV1','COM2/NAV2'];
							return modes[arg[0]];
						</script>
			    </binding>
				</hovered>
    </animation>

    <animation>
		  <type>pick</type>
		  <object-name>RCU.knob</object-name>
		  <visible>true</visible>
		  <action>
		    <button>0</button>
		    <button>3</button>
		    <repeatable>true</repeatable>
				<interval-sec>0.1</interval-sec>
		    <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>1</step>
					<min>117</min>
					<max>137</max>
					<resolution>1</resolution>
	      </binding>
		    <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm[1]/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>1</step>
					<min>117</min>
					<max>137</max>
					<resolution>1</resolution>
	      </binding>
	      <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>1</step>
					<min>108</min>
					<max>117</max>
          <resolution>1</resolution>
		    </binding>
	      <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav[1]/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>1</step>
					<min>108</min>
					<max>117</max>
          <resolution>1</resolution>
		    </binding>
			  <binding>
          <command>property-adjust</command>
						<property>instrumentation/rcu/knob</property>
          	<step>0.05</step>
						<min>0</min>
						<max>1</max>
						<wrap>1</wrap>
			  </binding>
			</action>
			<hovered>
		    <binding>
	        <command>set-tooltip</command>
	        <tooltip-id>Freq</tooltip-id>
	        <label>Frequencies</label>
		    </binding>
			</hovered>
    </animation>

    <animation>
		  <type>pick</type>
		  <object-name>RCU.knob</object-name>
		  <visible>true</visible>
		  <action>
		    <button>4</button>
		    <repeatable>true</repeatable>
				<interval-sec>0.1</interval-sec>
		    <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>-1</step>
					<min>117</min>
					<max>137</max>
					<resolution>1</resolution>
	      </binding>
		    <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm[1]/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>-1</step>
					<min>117</min>
					<max>137</max>
					<resolution>1</resolution>
	      </binding>
	      <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>-1</step>
					<min>108</min>
					<max>117</max>
          <resolution>1</resolution>
		    </binding>
	      <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav[1]/frequencies/selected-mhz</property>
          <mask>integer</mask>
        	<step>-1</step>
					<min>108</min>
					<max>117</max>
          <resolution>1</resolution>
		    </binding>
			  <binding>
          <command>property-adjust</command>
						<property>instrumentation/rcu/knob</property>
          	<step>-0.05</step>
						<min>0</min>
						<max>1</max>
						<wrap>1</wrap>
			  </binding>
			</action>
    </animation>

    <animation>
			<type>pick</type>
			<object-name>RCU.knob1</object-name>
			<visible>true</visible>
			<action>
				<button>0</button>
        <button>3</button>
        <repeatable>true</repeatable>
			  <interval-sec>0.1</interval-sec>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm/frequencies/selected-mhz</property>
          <step>0.025</step>
					<min>117.975</min>
					<max>137.000</max>
        </binding>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm[1]/frequencies/selected-mhz</property>
          <step>0.025</step>
					<min>117.975</min>
					<max>137.000</max>
        </binding>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav/frequencies/selected-mhz</property>
          <step>0.025</step>
					<min>108.000</min>
					<max>117.950</max>
        </binding>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav[1]/frequencies/selected-mhz</property>
          <step>0.025</step>
					<min>108.000</min>
					<max>117.950</max>
        </binding>
			  <binding>
          <command>property-adjust</command>
						<property>instrumentation/rcu/knob1</property>
          	<step>0.05</step>
						<min>0</min>
						<max>1</max>
						<wrap>1</wrap>
			  </binding>
			</action>
		</animation>

    <animation>
			<type>pick</type>
			<object-name>RCU.knob1</object-name>
			<visible>true</visible>
			<action>
        <button>4</button>
        <repeatable>true</repeatable>
			  <interval-sec>0.1</interval-sec>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm/frequencies/selected-mhz</property>
          <step>-0.025</step>
					<min>117.975</min>
					<max>137.000</max>
        </binding>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>COM</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/comm[1]/frequencies/selected-mhz</property>
          <step>-0.025</step>
					<min>117.975</min>
					<max>137.000</max>
        </binding>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<not>
								<property>instrumentation/rcu/mode</property>
							</not>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav/frequencies/selected-mhz</property>
          <step>-0.025</step>
					<min>108.000</min>
					<max>117.950</max>
        </binding>
        <binding>
					<condition>
						<and>
							<equals>
								<property>instrumentation/rcu/selected</property>
								<value>NAV</value>
							</equals>
							<property>instrumentation/rcu/mode</property>
						</and>
					</condition>
          <command>property-adjust</command>
					<property>instrumentation/nav[1]/frequencies/selected-mhz</property>
          <step>-0.025</step>
					<min>108.000</min>
					<max>117.950</max>
        </binding>
			  <binding>
          <command>property-adjust</command>
						<property>instrumentation/rcu/knob1</property>
          	<step>-0.05</step>
						<min>0</min>
						<max>1</max>
						<wrap>1</wrap>
			  </binding>
		   </action>
		</animation>

</PropertyList>
