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

<PropertyList>

  <!-- Bearing, Distance, Heading Indicator -->
  <path>bdhi.ac</path>

  <animation>
    <object-name>mount</object-name>
    <object-name>bkg</object-name>
    <object-name>needle-1</object-name>
    <object-name>needle-1-off</object-name>
    <object-name>needle-2</object-name>
    <object-name>needle-2-off</object-name>
    <object-name>compass-card</object-name>
    <object-name>central-mask.001</object-name>
    <object-name>indexes</object-name>
    <object-name>no-range-flag</object-name>
    <object-name>central-mask</object-name>
    <object-name>range-deci</object-name>
    <object-name>range-drum-1</object-name>
    <object-name>range-drum-2</object-name>
    <object-name>range-drum-3</object-name>
    <object-name>no-range-flag</object-name>

    <object-name>vitre</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>mount</object-name>
    <object-name>bkg</object-name>
    <object-name>needle-1</object-name>
    <object-name>needle-1-off</object-name>
    <object-name>needle-2</object-name>
    <object-name>needle-2-off</object-name>
    <object-name>compass-card</object-name>
    <object-name>central-mask.001</object-name>
    <object-name>indexes</object-name>
    <object-name>no-range-flag</object-name>
    <object-name>central-mask</object-name>
    <object-name>range-deci</object-name>
    <object-name>range-drum-1</object-name>
    <object-name>range-drum-2</object-name>
    <object-name>range-drum-3</object-name>
    <object-name>no-range-flag</object-name>
    <object-name>vitre</object-name>
  </animation>

  <!-- working for compositor -->
  <effect>
    <inherits-from>../../../../Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>

  <animation>
    <name>instrument</name>
    <object-name>needle-1</object-name>
    <object-name>needle-1-off</object-name>
    <object-name>needle-2</object-name>
    <object-name>needle-2-off</object-name>
    <object-name>compass-card</object-name>
    <object-name>indexes</object-name>
    <object-name>no-range-flag</object-name>
    <object-name>range-deci</object-name>
    <object-name>range-drum-1</object-name>
    <object-name>range-drum-2</object-name>
    <object-name>range-drum-3</object-name>
    <object-name>no-range-flag</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>instrument</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>compass-card</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- needle #1 = DF -->
  <animation>
    <type>select</type>
    <object-name>needle-1</object-name>
    <condition>
      <property>instrumentation/nav[1]/in-range</property>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle-1</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle-1</object-name>
    <property>instrumentation/nav[1]/heading-deg</property>
    <condition>
      <equals>
        <property>sim/model/aircraft/instrumentation/an-arc-182v/mode</property>
        <value>3</value>
      </equals>
    </condition>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>needle-1-off</object-name>
    <condition>
      <not><property>instrumentation/nav[1]/in-range</property></not>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle-1-off</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- needle #2 = TACAN -->
  <animation>
    <type>select</type>
    <object-name>needle-2</object-name>
    <condition>
      <property>instrumentation/tacan/in-range</property>
      <or>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>1</value>
        </equals>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>2</value>
        </equals>
      </or>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle-2</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle-2</object-name>
    <property>instrumentation/tacan/indicated-mag-bearing-deg</property>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>needle-2-off</object-name>
    <condition>
      <or>
        <not><property>instrumentation/tacan/in-range</property></not>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>0</value>
        </equals>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>3</value>
        </equals>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>4</value>
        </equals>
      </or>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>needle-2-off</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- tacan distance digital display -->
  <animation>
    <type>select</type>
    <object-name>no-range-flag</object-name>
    <condition>
      <or>
        <not><property>instrumentation/tacan/in-range</property></not>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>0</value>
        </equals>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>1</value>
        </equals>
        <equals>
          <property>sim/model/aircraft/instrumentation/tacan/mode</property>
          <value>4</value>
        </equals>
      </or>
    </condition>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>range-drum-1</object-name>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.1</factor>
    <offset>-1</offset>
    <step>1</step>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>range-drum-2</object-name>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.01</factor>
    <offset>-10</offset>
    <step>10</step>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>range-drum-3</object-name>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.001</factor>
    <offset>-100</offset>
    <step>100</step>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>range-deci</object-name>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>360</factor>
    <center>
      <x-m>  0.0000 </x-m>
      <y-m>  0.0110 </y-m>
      <z-m> -0.0191 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
