<PropertyList>

  <path>hsi.ac</path>

  <animation>
    <type>select</type>
    <object-name>HSI.dstoff</object-name>
    <condition>
      <property alias="../../../volts"/>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gs.needle</object-name>
    <condition>
      <property alias="../../../inputs/has-gs"/>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>HSI.dst100</object-name>
    <object-name>HSI.dst10</object-name>
    <object-name>HSI.dst1</object-name>
    <object-name>HSI.dst0</object-name>
    <condition>
      <and>
	<property alias="../../../../volts"/>
	<property alias="../../../../inputs/in-range"/>
      </and>
    </condition>
  </animation>


  <animation>
    <type>select</type>
    <object-name>navflag</object-name>
    <condition>
      <or>
	<not>
	  <property alias="../../../../../volts"/>
	</not>
	<not>
	  <property alias="../../../../../inputs/in-range"/>
	</not>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>toflag</object-name>
    <condition>
      <property alias="../../../inputs/to-flag"/>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>fromflag</object-name>
    <condition>
      <property alias="../../../inputs/from-flag"/>
    </condition>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.card</object-name>
    <object-name>HSI.crsneedle</object-name>
    <object-name>HSI.crsdeflection</object-name>
    <object-name>toflag</object-name>
    <object-name>fromflag</object-name>
    <property>orientation/heading-magnetic-deg</property>
    <axis>
      <x>1.0</x>
      <y>0</y>
      <z>0.0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.navbrg</object-name>
    <property>orientation/heading-deg</property>
    <axis>
      <x>1.0</x>
      <y>0</y>
      <z>0.0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.crsneedle</object-name>
    <object-name>HSI.crsdeflection</object-name>
    <object-name>toflag</object-name>
    <object-name>fromflag</object-name>
    <property alias="../../inputs/radials/selected-deg"/>
    <axis>
      <x>-1.0</x>
      <y>0</y>
      <z>0.0</z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>HSI.crsdeflection</object-name>
    <property alias="../../inputs/heading-needle-deflection"/>
    <interpolation>
      <entry><ind>-5</ind><dep>-0.0117</dep></entry>
      <entry><ind>0.0</ind><dep>0</dep></entry>
      <entry><ind>5</ind><dep>0.0117</dep></entry>
    </interpolation>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.hdgbug</object-name>
    <property>autopilot/internal/heading-bug-error-deg</property>
    <axis>
      <x>-1.0</x>
      <y>0</y>
      <z>0.0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.navbrg</object-name>
    <property alias="../../inputs/heading-deg"/>
    <axis>
      <x>-1.0</x>
      <y>0</y>
      <z>0.0</z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>gs.needle</object-name>
    <property alias="../../inputs/gs-needle-deflection"/>
    <interpolation>
      <entry><ind>-2.0</ind><dep>-0.0133</dep></entry>
      <entry><ind>0.0</ind><dep>0.0</dep></entry>
      <entry><ind>2.0</ind><dep>0.0133</dep></entry>
    </interpolation>
    <axis>
      <x>0</x>
      <y>0</y>
      <z>1</z>
    </axis>
  </animation>
  <!-- CRS text-->

  <animation>
    <type>select</type>
    <object-name>HSI.crs100</object-name>
    <object-name>HSI.crs10</object-name>
    <object-name>HSI.crs1</object-name>
    <condition>
      <greater-than>
        <property>/systems/electrical/ac-volts</property>
        <value>100</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>HSI.crs100</object-name>
    <property alias="../../inputs/radials/selected-deg"/>
    <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>HSI.crs10</object-name>
    <property alias="../../inputs/radials/selected-deg"/>
    <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>HSI.crs1</object-name>
    <property alias="../../inputs/radials/selected-deg"/>
    <factor>0.1</factor>
    <step>1</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <!-- DISTC text-->

  <animation>
    <type>textranslate</type>
    <object-name>HSI.dst100</object-name>
    <property alias="../../inputs/nav-distance"/>
    <factor>0.000000539956803</factor>
    <step>185200</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>HSI.dst10</object-name>
    <property alias="../../inputs/nav-distance"/>
    <factor>0.00000539956803</factor>
    <step>18520</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>HSI.dst1</object-name>
    <property alias="../../inputs/nav-distance"/>
    <factor>0.0000539956803</factor>
    <step>1852</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>HSI.dst0</object-name>
    <property alias="../../inputs/nav-distance"/>
    <factor>0.000539956803</factor>
    <step>185.2</step>
    <axis>
      <x>0</x>
      <y>1</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.crsknob</object-name>
    <property alias="../../inputs/radials/selected-deg"/>
    <factor>2</factor>
    <center>
      <x-m>0</x-m>
      <y-m>-0.044</y-m>
      <z-m>-0.034</z-m>
    </center>
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>HSI.hdgknob</object-name>
    <property>autopilot/settings/heading-bug-deg</property>
    <factor>2</factor>
    <center>
      <x-m>0</x-m>
      <y-m>0.043</y-m>
      <z-m>-0.034</z-m>
    </center>
    <axis>
      <x>-1</x>
      <y>0</y>
      <z>0</z>
    </axis>
  </animation>

  <!-- hotspots-->

  <animation>
    <type>pick</type>
    <object-name>HSI.crsknob</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../inputs/radials/selected-deg"/>
        <step>1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.crsknob</object-name>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../inputs/radials/selected-deg"/>
        <step>-1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.crsknob</object-name>
    <action>
      <button>3</button>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../inputs/radials/selected-deg"/>
        <step>1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.crsknob</object-name>
    <action>
      <button>4</button>
      <binding>
        <command>property-adjust</command>
        <property alias="../../../../inputs/radials/selected-deg"/>
        <step>-1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.hdgknob</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step>1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.hdgknob</object-name>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <interval-sec>0.2</interval-sec>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step>-1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.hdgknob</object-name>
    <action>
      <button>3</button>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step>1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>HSI.hdgknob</object-name>
    <action>
      <button>4</button>
      <binding>
        <command>property-adjust</command>
        <property>autopilot/settings/heading-bug-deg</property>
        <step>-1</step>
        <min>0</min>
        <max>360</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

</PropertyList>

