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

<PropertyList>

  <params>
    <needle1source>instrumentation/rmi[0]/needle1-switch-position</needle1source>
    <needle2source>instrumentation/rmi[0]/needle2-switch-position</needle2source>
<!--
    <indicated-heading>instrumentation/heading-indicator/indicated-heading-deg</indicated-heading>
-->
    <indicated-heading>orientation/heading-magnetic-deg</indicated-heading>
    <one>instrumentation/rmi[0]/needle1-rotation-deg</one>
    <two>instrumentation/rmi[0]/needle2-rotation-deg</two>
  </params>

  <path>select.ac</path>

  <animation>
    <object-name>Label</object-name>
    <object-name>Needle1Source</object-name>
    <object-name>Needle2Source</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>Label</object-name>
    <object-name>Needle1Source</object-name>
    <object-name>Needle2Source</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>Label</object-name>
    <object-name>Needle1Source</object-name>
    <object-name>Needle2Source</object-name>
    <condition>
      <property>/controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.50 </red>
      <green> 0.40 </green>
      <blue>  0.30 </blue>
    </emission>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Needle1Source</object-name>
    <property alias="../../params/needle1source"/>
    <factor>30</factor>
    <offset-deg>-15</offset-deg>
    <center>
      <x-m> -0.00286 </x-m>
      <y-m> -0.01689 </y-m>
      <z-m>  0.00945 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <object-name>Needle1Source</object-name>
    <type>pick</type>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property alias="../../../../params/needle1source"/>
        <value>1</value>
      </binding>
      <binding>
        <condition>
          <equals>
            <property alias="../../../../../../params/needle1source"/>
            <value>1</value>
          </equals>
        </condition>
        <command>property-assign</command>
        <property>instrumentation/rmi[0]/needle1-rotation-deg</property>
        <property>instrumentation/adf[0]/indicated-bearing-deg</property>
      </binding>
      <binding>
        <condition>
          <equals>
            <property alias="../../../../../../params/needle1source"/>
            <value>0</value>
          </equals>
        </condition>
        <command>property-assign</command>
        <property>instrumentation/rmi[0]/needle1-rotation-deg</property>
        <property>instrumentation/primus1000/pfd/nav1ptr-hdg-offset</property>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>Needle2Source</object-name>
    <property alias="../../params/needle2source"/>
    <factor>30</factor>
    <offset-deg>-15</offset-deg>
    <center>
      <x-m> -0.00286 </x-m>
      <y-m>  0.01688 </y-m>
      <z-m>  0.00945 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <object-name>Needle2Source</object-name>
    <type>pick</type>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property alias="../../../../params/needle2source"/>
        <value>1</value>
      </binding>
      <binding>
        <condition>
          <equals>
            <property alias="../../../../../../params/needle2source"/>
            <value type="bool">1</value>
          </equals>
        </condition>
        <command>property-assign</command>
        <property alias="../../../../params/two"/>
        <property>/instrumentation/adf[1]/indicated-bearing-deg</property>
      </binding>
      <binding>
        <condition>
          <equals>
            <property alias="../../../../../../params/needle2source"/>
            <value type="bool">0</value>
          </equals>
        </condition>
        <command>property-assign</command>
        <property alias="../../../../params/two"/>
        <property>instrumentation/primus1000/pfd/nav2ptr-hdg-offset</property>
      </binding>
    </action>
  </animation>

</PropertyList>
