<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <path>hsi.ac</path>

 <animation>
  <type>scale</type>
  <x-offset>0.8461538</x-offset>
  <y-offset>0.8461538</y-offset>
  <z-offset>0.8461538</z-offset>
 </animation>

  <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>
    <object-name>heading-down</object-name>
    <object-name>heading-up</object-name>
    <object-name>course-down</object-name>
    <object-name>course-up</object-name>

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

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

  <animation>
    <type>shader</type>
    <shader>chrome</shader>
    <texture>shader.png</texture>
  </animation>

  <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>
    <emission>
      <red>   0.8 </red>
      <green> 0.7 </green>
      <blue>  0.5 </blue>
      <factor-prop>/controls/lighting/instruments-norm</factor-prop>
    </emission>
  </animation>

  <!-- tacan distance digital display -->
  <animation>
    <type>rotate</type>
    <object-name>dist01</object-name>
    <property>/instrumentation/tacan/dist/val1000</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m>  0.018 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dist02</object-name>
    <property>/instrumentation/tacan/dist/val100</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m>  0.024 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dist03</object-name>
    <property>/instrumentation/tacan/dist/val10</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m>  0.030 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dist04</object-name>
    <property>/instrumentation/tacan/dist/val1</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m>  0.036 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Course Readout -->
  <animation>
    <type>rotate</type>
    <object-name>crs01</object-name>
    <property>/instrumentation/nav[1]/radials/rsd/val100</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m> -0.035 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>crs02</object-name>
    <property>/instrumentation/nav[1]/radials/rsd/val10</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m> -0.029 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>crs03</object-name>
    <property>/instrumentation/nav[1]/radials/rsd/val1</property>
    <factor> 36 </factor>
    <center>
      <x-m> -0.015 </x-m>
      <y-m> -0.023 </y-m>
      <z-m>  0.045 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>cmpscard</object-name>
    <condition>
      <greater-than>
        <property>/systems/electrical/outputs/hsi</property>
        <value>23</value>
      </greater-than>
    </condition>
    <property>/instrumentation/heading-indicator-fg/indicated-heading-deg</property>
    <!-- <property>/orientation/heading-magnetic-deg[0]</property> -->
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
    <center>
      <x> 0.000 </x>
      <y> 0.000 </y>
      <y> 0.003 </y>
    </center>
  </animation> 

  <animation>
    <type>rotate</type>
    <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[0]</property>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>heading-bug</object-name>
    <condition>
      <greater-than>
        <property>systems/electrical/outputs/hsi</property>
        <value>23</value>
      </greater-than>
    </condition>
    <property>/instrumentation/heading-indicator-fg/indicated-heading-deg</property>
    <!-- <property>/autopilot/settings/heading-bug-deg</property> -->
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>bearing-bug</object-name>
    <condition>
      <greater-than>
        <property>/systems/electrical/outputs/hsi</property>
        <value>23</value>
      </greater-than>
    </condition>
    <property>/instrumentation/navcomputer/indicated-bearing</property>
    <!-- <property>/autopilot/settings/heading-bug-deg</property> -->
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

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

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

  <animation>
    <type>rotate</type>
    <object-name>HDGneedle</object-name>
    <object-name>HDGneedle2</object-name>
    <property>/instrumentation/nav/radials/selected-deg</property>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>HDGneedle2</object-name>
    <property>/instrumentation/nav/heading-needle-deflection</property>
    <factor>0.002</factor>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </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>  9 </ind><dep>  0.03 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

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

  <animation>
    <type>pick</type>
    <object-name>course-down</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/nav[1]/radials/selected-deg</property>
        <step>-1</step>
        <min>0</min>
        <max>360</max>
        <wrap>1</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>course-up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/nav[1]/radials/selected-deg</property>
        <step>1</step>
        <min>0</min>
        <max>360</max>
        <wrap>1</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>buttonCRS</object-name>
    <property>/instrumentation/nav[1]/radials/selected-deg</property>
    <center>
      <x-m>  0.007 </x-m>
      <y-m> -0.051 </y-m>
      <z-m> -0.053 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>heading-down</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/heading-indicator-fg/offset-deg</property>
        <step>-1</step>
        <min>0</min>
        <max>360</max>
        <wrap>1</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>heading-up</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/instrumentation/heading-indicator-fg/offset-deg</property>
        <step>1</step>
        <min>0</min>
        <max>360</max>
        <wrap>1</wrap>
      </binding>
    </action>
  </animation>

  <animation>
   <type>rotate</type>
   <object-name>buttonHDG</object-name>
   <property>/instrumentation/heading-indicator-fg/offset-deg</property>
   <center>
      <x-m>  0.007 </x-m>
      <y-m>  0.051 </y-m>
      <z-m> -0.053 </z-m>
   </center>
   <axis>
     <x> -1 </x>
     <y>  0 </y>
     <z>  0 </z>
   </axis>
  </animation>

</PropertyList>
