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

<PropertyList>

  <path>hsi.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>fond</object-name>
    <object-name>buttonCRS</object-name>
    <object-name>buttonHDG</object-name>
    <object-name>back</object-name>
    <object-name>cmpscard</object-name>
    <object-name>crs01</object-name>
    <object-name>crs02</object-name>
    <object-name>crs03</object-name>
    <object-name>dist01</object-name>
    <object-name>dist02</object-name>
    <object-name>dist03</object-name>
    <object-name>dist04</object-name>
    <object-name>HDGneedle</object-name>
    <object-name>HDGneedle2</object-name>
    <object-name>bearing-bug</object-name>
    <object-name>heading-bug</object-name>
    <object-name>GSpointer</object-name>
    <object-name>cache</object-name>
    <object-name>off-flag</object-name>

    <!-- Objets transparents -->
    <object-name>vitre</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>buttonCRS</object-name>
    <object-name>buttonHDG</object-name>
    <object-name>back</object-name>
    <object-name>cmpscard</object-name>
    <object-name>crs01</object-name>
    <object-name>crs02</object-name>
    <object-name>crs03</object-name>
    <object-name>dist01</object-name>
    <object-name>dist02</object-name>
    <object-name>dist03</object-name>
    <object-name>dist04</object-name>
    <object-name>HDGneedle</object-name>
    <object-name>HDGneedle2</object-name>
    <object-name>bearing-bug</object-name>
    <object-name>heading-bug</object-name>
    <object-name>GSpointer</object-name>
    <object-name>cache</object-name>
    <object-name>off-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>
    <type>material</type>
    <object-name>back</object-name>
    <object-name>cmpscard</object-name>
    <object-name>crs01</object-name>
    <object-name>crs02</object-name>
    <object-name>crs03</object-name>
    <object-name>dist01</object-name>
    <object-name>dist02</object-name>
    <object-name>dist03</object-name>
    <object-name>dist04</object-name>
    <object-name>HDGneedle</object-name>
    <object-name>HDGneedle2</object-name>
    <object-name>bearing-bug</object-name>
    <object-name>heading-bug</object-name>
    <object-name>GSpointer</object-name>
    <object-name>cache</object-name>
    <object-name>off-flag</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>

  <!-- tacan distance digital display -->
  <animation>
    <type>textranslate</type>
    <object-name>dist01</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>0</value>
      </equals>
      <property>instrumentation/dme/in-range</property>
    </condition>
    <property>instrumentation/dme/indicated-distance-nm</property>
    <factor>0.0001</factor>
    <step>1000</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist01</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>1</value>
      </equals>
      <property>instrumentation/tacan/in-range</property>
    </condition>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.0001</factor>
    <step>1000</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist02</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>0</value>
      </equals>
      <property>instrumentation/dme/in-range</property>
    </condition>
    <property>instrumentation/dme/indicated-distance-nm</property>
    <factor>0.001</factor>
    <step>100</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist02</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>1</value>
      </equals>
      <property>instrumentation/tacan/in-range</property>
    </condition>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.001</factor>
    <step>100</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist03</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>0</value>
      </equals>
      <property>instrumentation/dme/in-range</property>
    </condition>
    <property>instrumentation/dme/indicated-distance-nm</property>
    <factor>0.01</factor>
    <step>10</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist03</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>1</value>
      </equals>
      <property>instrumentation/tacan/in-range</property>
    </condition>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.01</factor>
    <step>10</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist04</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>0</value>
      </equals>
      <property>instrumentation/dme/in-range</property>
    </condition>
    <property>instrumentation/dme/indicated-distance-nm</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>dist04</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>1</value>
      </equals>
      <property>instrumentation/tacan/in-range</property>
    </condition>
    <property>instrumentation/tacan/indicated-distance-nm</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <!-- Course Readout -->
  <animation>
    <type>select</type>
    <object-name>crs01</object-name>
    <object-name>crs02</object-name>
    <object-name>crs03</object-name>
    <condition>
      <equals>
        <property>instrumentation/tacan/switch-position</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>crs01</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <factor>0.001</factor>
    <step>100</step>
    <axis>
      <x>0</x>
      <y>1</y>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>crs02</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <axis>
      <x>0</x>
      <y>1</y>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>crs03</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x>0</x>
      <y>1</y>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cmpscard</object-name>
    <object-name>HDGneedle</object-name>
    <object-name>HDGneedle2</object-name>
    <object-name>heading-bug</object-name>
    <object-name>bearing-bug</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <!-- <property>instrumentation/heading-indicator/indicated-heading-deg</property> -->
    <center>
      <x-m>0.000</x-m>
      <y-m>0.000</y-m>
      <z-m>0.002</z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>heading-bug</object-name>
    <property>autopilot/settings/heading-bug-deg</property>
    <center>
      <x-m>0.000</x-m>
      <y-m>0.000</y-m>
      <z-m>0.002</z-m>
    </center>
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>cache</object-name>
    <condition>
      <or>
        <and>
          <equals>
            <property>instrumentation/tacan/switch-position</property>
            <value>0</value>
          </equals>
          <not><property>instrumentation/dme/in-range</property></not>
        </and>
        <and>
          <equals>
            <property>instrumentation/tacan/switch-position</property>
            <value>1</value>
          </equals>
          <not><property>instrumentation/tacan/in-range</property></not>
        </and>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>off-flag</object-name>
    <condition>
      <less-than>
        <property>systems/electrical/outputs/hsi</property>
        <value type="float">24</value>
      </less-than>
    </condition>
  </animation>

  <!-- tacan display -->
  <animation>
    <type>rotate</type>
    <object-name>bearing-bug</object-name>
    <property>instrumentation/heading-indicator/bearing-deg</property>
    <center>
      <x-m>0.000</x-m>
      <y-m>0.000</y-m>
      <z-m>0.002</z-m>
    </center>
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HDGneedle</object-name>
    <object-name>HDGneedle2</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <center>
      <x-m>0.000</x-m>
      <y-m>0.000</y-m>
      <z-m>0.002</z-m>
    </center>
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>HDGneedle2</object-name>
    <property>instrumentation/nav[0]/heading-needle-deflection</property>
    <interpolation>
      <entry><ind> -10 </ind><dep> -0.0253 </dep></entry>
      <entry><ind>   0 </ind><dep>  0.0000 </dep></entry>
      <entry><ind>  10 </ind><dep>  0.0253 </dep></entry>
    </interpolation>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>GSpointer</object-name>
    <condition>
      <and>
        <property>instrumentation/nav/has-gs</property>
        <property>instrumentation/nav/in-range</property>
     </and>
    </condition>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>GSpointer</object-name>
    <property>instrumentation/nav/gs-needle-deflection</property>
    <interpolation>
      <entry><ind> -9 </ind><dep> -0.03 </dep></entry>
      <entry><ind>  0 </ind><dep>  0.00 </dep></entry>
      <entry><ind>  9 </ind><dep>  0.03 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>buttonCRS</object-name>
    <property>instrumentation/nav[0]/radials/selected-deg</property>
    <factor> 6 </factor>
    <center>
      <x-m>  0.0055 </x-m>
      <y-m> -0.0480 </y-m>
      <z-m> -0.0410 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/nav[0]/radials/selected-deg</property>
        <factor> 1 </factor>
        <min>    0 </min>
        <max>  360 </max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>buttonHDG</object-name>
    <property>autopilot/settings/heading-bug-deg</property>
    <factor> 6 </factor>
    <center>
      <x-m>  0.0055 </x-m>
      <y-m>  0.0480 </y-m>
      <z-m> -0.0410 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <factor> 1 </factor>
        <min>    0 </min>
        <max>  360 </max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

</PropertyList>
