<?xml version="1.0"?>
<PropertyList>

  <path>a4f-panel-rh.ac</path>
  
  <!-- Overall rotation.  This allows us to have all our own
  animations along sensible axes -->
  
  <animation>
    <type>rotate</type>
    <offset-deg>6.2</offset-deg>
    <axis>
      <x>0</x><y>1</y><z>0</z>
    </axis>
  </animation>
  
  <!-- Elevator Trim Indicator -->
  <animation>
    <type>rotate</type>
    <object-name>ElevatorTrimNeedle</object-name>
    <property>/controls/flight/elevator-trim</property>
    <factor>130.0</factor>
    <axis>
      <x>0</x><y>0</y><z>-1</z>
    </axis>    
    <max>-36</max>
    <center>
      <x-m>0.01989</x-m>
      <y-m>0.244</y-m>
      <z-m>-0.105</z-m>
    </center>
  </animation>
  
  <!-- Rudder Trim Indicator -->
  <animation>
    <type>rotate</type>
    <object-name>RudderTrimNeedle</object-name>
    <property>/controls/flight/rudder-trim</property>
    <factor>71</factor>
    <axis>
      <x>0</x><y>0</y><z>-1</z>
    </axis>
    <center>
      <x-m>0.02025</x-m>
      <y-m>0.268</y-m>
      <z-m>-0.105</z-m>
    </center>
  </animation>
  
  <!-- Drift Mode Control -->
  <animation>
    <type>select</type>
    <object-name>DriftModeControlOff</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>DriftModeControlStby</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>DriftModeControlLand</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>DriftModeControlSea</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <value>3</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>DriftModeControlOff</object-name>
    <object-name>DriftModeControlStby</object-name>
    <object-name>DriftModeControlLand</object-name>
    <object-name>DriftModeControlSea</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <step>1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <step>-1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <step>1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/drift-indicator-mode</property>
        <step>-1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>    
  </animation>
  
  <!-- Drift Angle Indicator -->
  <animation>
    <type>rotate</type>
    <object-name>DriftNeedle</object-name>
    <property>/instrumentation/drift-angle-deg</property>
    <factor>3</factor>
    <axis>
      <x>0</x><y>0</y><z>-1</z>
    </axis>
    <min>-120</min>
    <max>120</max>
    <center>
      <x-m>0.04995</x-m>
      <y-m>0.272</y-m>
      <z-m>-0.105</z-m>
    </center>
  </animation>
    
  <!-- INS Mode Control -->
  <animation>
    <type>select</type>
    <object-name>InertialNavModeTest</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/ins/mode</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>InertialNavModeOff</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/ins/mode</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>InertialNavModeStby</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/ins/mode</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>InertialNavModeD1</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/ins/mode</property>
        <value>3</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>InertialNavModeD2</object-name>
    <condition>
      <equals>
        <property>/controls/instrumentation/ins/mode</property>
        <value>4</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>InertialNavModeTest</object-name>
    <object-name>InertialNavModeOff</object-name>
    <object-name>InertialNavModeStby</object-name>
    <object-name>InertialNavModeD1</object-name>
    <object-name>InertialNavModeD2</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/ins/mode</property>
        <step>1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/ins/mode</property>
        <step>-1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/ins/mode</property>
        <step>1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>/controls/instrumentation/ins/mode</property>
        <step>-1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>        
  </animation>
  
  <!-- Present Position Indicator -->
  <!-- Rather than simulate an INS, we simply take current values -->
  
  <!-- Latitude -->
  <animation>
    <type>textranslate</type>
    <object-name>PresentLatN1</object-name>
    <property>position/latitude-deg</property>
    <factor>-0.01</factor>
    <step>10</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatN2</object-name>
    <property>position/latitude-deg</property>
    <factor>-0.1</factor>
    <step>1</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatN3</object-name>
    <property>position/latitude-deg</property>
    <factor>-1</factor>
    <step>0.1</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatN4</object-name>
    <property>position/latitude-deg</property>
    <factor>-10</factor>
    <step>0.01</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatS1</object-name>
    <property>position/latitude-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <scroll>0.001</scroll>
    <bias>9.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatS2</object-name>
    <property>position/latitude-deg</property>
    <factor>0.1</factor>
    <step>1</step>
    <scroll>0.001</scroll>
    <bias>0.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatS3</object-name>
    <property>position/latitude-deg</property>
    <factor>1</factor>
    <step>0.1</step>
    <scroll>0.001</scroll>
    <bias>0.09</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLatS4</object-name>
    <property>position/latitude-deg</property>
    <factor>10</factor>
    <step>0.01</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>PresentLatN</object-name>
    <object-name>PresentLatN1</object-name>
    <object-name>PresentLatN2</object-name>
    <object-name>PresentLatN3</object-name>
    <object-name>PresentLatN4</object-name>
    <condition>
      <greater-than-equals>
        <property>position/latitude-deg</property>
        <value>0</value>
      </greater-than-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>PresentLatS</object-name>
    <object-name>PresentLatS1</object-name>
    <object-name>PresentLatS2</object-name>
    <object-name>PresentLatS3</object-name>
    <object-name>PresentLatS4</object-name>
    <condition>
      <less-than>
        <property>position/latitude-deg</property>
        <value>0</value>
      </less-than>
    </condition>
  </animation>

  <!-- Longitude -->
  <animation>
    <type>textranslate</type>
    <object-name>PresentLonE1</object-name>
    <property>position/longitude-deg</property>
    <factor>-0.001</factor>
    <step>100</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonE2</object-name>
    <property>position/longitude-deg</property>
    <factor>-0.01</factor>
    <step>10</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonE3</object-name>
    <property>position/longitude-deg</property>
    <factor>-0.1</factor>
    <step>1</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonE4</object-name>
    <property>position/longitude-deg</property>
    <factor>-1</factor>
    <step>0.1</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonE5</object-name>
    <property>position/longitude-deg</property>
    <factor>-10</factor>
    <step>0.01</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonW1</object-name>
    <property>position/longitude-deg</property>
    <factor>0.001</factor>
    <step>100</step>
    <scroll>0.001</scroll>
    <bias>99.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonW2</object-name>
    <property>position/longitude-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <scroll>0.001</scroll>
    <bias>9.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonW3</object-name>
    <property>position/longitude-deg</property>
    <factor>0.1</factor>
    <step>1</step>
    <scroll>0.001</scroll>
    <bias>0.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonW4</object-name>
    <property>position/longitude-deg</property>
    <factor>1</factor>
    <step>0.1</step>
    <scroll>0.001</scroll>
    <bias>0.09</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>PresentLonW5</object-name>
    <property>position/longitude-deg</property>
    <factor>10</factor>
    <step>0.01</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>PresentLonE</object-name>
    <object-name>PresentLonE1</object-name>
    <object-name>PresentLonE2</object-name>
    <object-name>PresentLonE3</object-name>
    <object-name>PresentLonE4</object-name>
    <object-name>PresentLonE5</object-name>
    <condition>
      <greater-than-equals>
        <property>position/longitude-deg</property>
        <value>0</value>
      </greater-than-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>PresentLonW</object-name>
    <object-name>PresentLonW1</object-name>
    <object-name>PresentLonW2</object-name>
    <object-name>PresentLonW3</object-name>
    <object-name>PresentLonW4</object-name>
    <object-name>PresentLonW5</object-name>
    <condition>
      <less-than>
        <property>position/longitude-deg</property>
        <value>0</value>
      </less-than>
    </condition>
  </animation>
  
  <!-- Destination Indicator -->
  
  <!-- Latitude -->
  <animation>
    <type>textranslate</type>
    <object-name>DestLatN1</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>-0.01</factor>
    <step>10</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatN2</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>-0.1</factor>
    <step>1</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatN3</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>-1</factor>
    <step>0.1</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatN4</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>-10</factor>
    <step>0.01</step>
    <scroll>0.001</scroll>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatS1</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <scroll>0.001</scroll>
    <bias>9.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatS2</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>0.1</factor>
    <step>1</step>
    <scroll>0.001</scroll>
    <bias>0.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatS3</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>1</factor>
    <step>0.1</step>
    <scroll>0.001</scroll>
    <bias>0.09</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLatS4</object-name>
    <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
    <factor>10</factor>
    <step>0.01</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>DestLatN</object-name>
    <object-name>DestLatN1</object-name>
    <object-name>DestLatN2</object-name>
    <object-name>DestLatN3</object-name>
    <object-name>DestLatN4</object-name>
    <condition>
      <greater-than-equals>
        <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
        <value>0</value>
      </greater-than-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>DestLatS</object-name>
    <object-name>DestLatS1</object-name>
    <object-name>DestLatS2</object-name>
    <object-name>DestLatS3</object-name>
    <object-name>DestLatS4</object-name>
    <condition>
      <less-than>
        <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
        <value>0</value>
      </less-than>
    </condition>
  </animation>

  <!-- Longitude -->
  <animation>
    <type>textranslate</type>
    <object-name>DestLonE1</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</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>DestLonE2</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</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>DestLonE3</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</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>DestLonE4</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>-1</factor>
    <step>0.1</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLonE5</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>-10</factor>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLonW1</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>0.001</factor>
    <step>100</step>
    <bias>99.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLonW2</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <bias>9.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLonW3</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>0.1</factor>
    <step>1</step>
    <bias>0.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLonW4</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>1</factor>
    <step>0.1</step>
    <bias>0.09</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>DestLonW5</object-name>
    <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
    <factor>10</factor>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>DestLonE</object-name>
    <object-name>DestLonE1</object-name>
    <object-name>DestLonE2</object-name>
    <object-name>DestLonE3</object-name>
    <object-name>DestLonE4</object-name>
    <object-name>DestLonE5</object-name>
    <condition>
      <greater-than-equals>
        <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
        <value>0</value>
      </greater-than-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>DestLonW</object-name>
    <object-name>DestLonW1</object-name>
    <object-name>DestLonW2</object-name>
    <object-name>DestLonW3</object-name>
    <object-name>DestLonW4</object-name>
    <object-name>DestLonW5</object-name>
    <condition>
      <less-than>
        <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
        <value>0</value>
      </less-than>
    </condition>
  </animation>
  
  <!-- Current Destination Controls -->
  <animation>
    <type>pick</type>
    <object-name>DestLatSlew</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
        <step>0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
        <step>-0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
        <step>0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/latitude-deg</property>
        <step>-0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>    
  </animation>

  <animation>
    <type>pick</type>
    <object-name>DestLonSlew</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
        <step>0.01</step>
        <min>-180</min>
        <max>180</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
        <step>-0.01</step>
        <min>-180</min>
        <max>180</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
        <step>0.01</step>
        <min>-180</min>
        <max>180</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/current-destination/longitude-deg</property>
        <step>-0.01</step>
        <min>-180</min>
        <max>180</max>        
      </binding>
    </action>    
  </animation>
  
  <!-- Magnetic Variation Indicator -->
  
  
  
  <animation>
    <type>textranslate</type>
    <object-name>MagVarE1</object-name>
    <property>controls/instrumentation/ins/magvar-deg</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>MagVarE2</object-name>
    <property>controls/instrumentation/ins/magvar-deg</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>MagVarE3</object-name>
    <property>controls/instrumentation/ins/magvar-deg</property>
    <factor>-1</factor>
    <step>0.1</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MagVarE4</object-name>
    <property>controls/instrumentation/ins/magvar-deg</property>
    <factor>-10</factor>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MagVarW1</object-name>
    <property>controls/instrumentation/ins/magvar-deg</property>
    <factor>0.01</factor>
    <step>10</step>
    <bias>9.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MagVarW2</object-name>
    <property>controls/instrumentation/ins/magvar-deg</property>
    <factor>0.1</factor>
    <step>1</step>
    <bias>0.99</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MagVarW3</object-name>
    <property>controls/instrumentation/ins/magvar-deg</property>
    <factor>1</factor>
    <step>0.1</step>
    <bias>0.09</bias>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>MagVarW4</object-name>
    <property>controls/instrumentation/ins/magvar-deg</property>
    <factor>10</factor>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>select</type>
    <object-name>MagVarE</object-name>
    <object-name>MagVarE1</object-name>
    <object-name>MagVarE2</object-name>
    <object-name>MagVarE3</object-name>
    <object-name>MagVarE4</object-name>
    <condition>
      <greater-than-equals>
        <property>controls/instrumentation/ins/magvar-deg</property>
        <value>0</value>
      </greater-than-equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>MagVarW</object-name>
    <object-name>MagVarW1</object-name>
    <object-name>MagVarW2</object-name>
    <object-name>MagVarW3</object-name>
    <object-name>MagVarW4</object-name>
    <condition>
      <less-than>
        <property>controls/instrumentation/ins/magvar-deg</property>
        <value>0</value>
      </less-than>
    </condition>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>MagVarSlew</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/magvar-deg</property>
        <step>0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/magvar-deg</property>
        <step>-0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/magvar-deg</property>
        <step>0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/magvar-deg</property>
        <step>-0.01</step>
        <min>-90</min>
        <max>90</max>        
      </binding>
    </action>    
  </animation>
  
  
  <!-- INS Wind Speed -->
  <animation>
    <type>textranslate</type>
    <object-name>INSWindSpeed1</object-name>
    <property>controls/instrumentation/ins/wind-speed-kts</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>INSWindSpeed2</object-name>
    <property>controls/instrumentation/ins/wind-speed-kts</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>INSWindSpeed3</object-name>
    <property>controls/instrumentation/ins/wind-speed-kts</property>
    <factor>-0.1</factor>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>INSWindSpeedSlew</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-speed-kts</property>
        <step>1</step>
        <min>0</min>
        <max>999</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-speed-kts</property>
        <step>-1</step>
        <min>0</min>
        <max>999</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-speed-kts</property>
        <step>1</step>
        <min>0</min>
        <max>999</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-speed-kts</property>
        <step>-1</step>
        <min>0</min>
        <max>999</max>        
      </binding>
    </action>    
  </animation>  

  <!-- INS Wind Direction -->
  <animation>
    <type>textranslate</type>
    <object-name>INSWindDir1</object-name>
    <property>controls/instrumentation/ins/wind-dir-deg</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>INSWindDir2</object-name>
    <property>controls/instrumentation/ins/wind-dir-deg</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>INSWindDir3</object-name>
    <property>controls/instrumentation/ins/wind-dir-deg</property>
    <factor>-0.1</factor>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>
  
  <animation>
    <type>pick</type>
    <object-name>INSWindDirSlew</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-dir-deg</property>
        <wrap>true</wrap>
        <step>1</step>
        <min>0</min>
        <max>360</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-dir-deg</property>
        <wrap>true</wrap>
        <step>-1</step>
        <min>0</min>
        <max>360</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-dir-deg</property>
        <wrap>true</wrap>
        <step>1</step>
        <min>0</min>
        <max>360</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/ins/wind-dir-deg</property>
        <wrap>true</wrap>
        <step>-1</step>
        <min>0</min>
        <max>360</max>        
      </binding>
    </action>    
  </animation>  


  <!-- UHF RADIO -->
  <animation>
    <type>pick</type>
    <object-name>UHFPresetChannel</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <wrap>true</wrap>
        <step>1</step>
        <min>0</min>
        <max>19</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <wrap>true</wrap>
        <step>-1</step>
        <min>0</min>
        <max>19</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <wrap>true</wrap>
        <step>1</step>
        <min>0</min>
        <max>19</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <wrap>true</wrap>
        <step>-1</step>
        <min>0</min>
        <max>19</max>        
      </binding>
    </action>    
  </animation>  
  
  <!-- UHF Frequency Select control -->
  <animation>
    <type>pick</type>
    <object-name>UHFFreqSelectPreset</object-name>
    <object-name>UHFFreqSelectManual</object-name>
    <object-name>UHFFreqSelectGoXMIT</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/freq-select</property>
        <step>1</step>
        <min>0</min>
        <max>2</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/freq-select</property>
        <step>-1</step>
        <min>0</min>
        <max>2</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/freq-select</property>
        <step>1</step>
        <min>0</min>
        <max>2</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/freq-select</property>
        <step>-1</step>
        <min>0</min>
        <max>2</max>        
      </binding>
    </action>    
  </animation>  

  <animation>
    <type>select</type>
    <object-name>UHFFreqSelectPreset</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/freq-select</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>UHFFreqSelectManual</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/freq-select</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>UHFFreqSelectGoXMIT</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/freq-select</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>

  <!-- UHF Control -->
  <animation>
    <type>pick</type>
    <object-name>UHFOff</object-name>
    <object-name>UHFTR</object-name>
    <object-name>UHFTRG</object-name>
    <object-name>UHFADF</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/mode</property>
        <step>1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/mode</property>
        <step>-1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/mode</property>
        <step>1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/mode</property>
        <step>-1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>    
  </animation>  

  <animation>
    <type>select</type>
    <object-name>UHFOff</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/mode</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>UHFTR</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/mode</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>UHFTRG</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/mode</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>UHFADF</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/uhf/mode</property>
        <value>3</value>
      </equals>
    </condition>
  </animation>
  
  <!-- Current COMM1 Frequency -->
  <animation>
    <type>textranslate</type>
    <object-name>UHFFreq1</object-name>
    <property>controls/instrumentation/uhf/manual-channel</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>UHFFreq2</object-name>
    <property>controls/instrumentation/uhf/manual-channel</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>UHFFreq3</object-name>
    <property>controls/instrumentation/uhf/manual-channel</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>UHFFreq4</object-name>
    <property>controls/instrumentation/uhf/manual-channel</property>
    <factor>-1</factor>
    <step>0.1</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>UHFFreq5</object-name>
    <property>controls/instrumentation/uhf/manual-channel</property>
    <factor>-10</factor>
    <step>0.01</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>
  
  <!-- Volume Control -->
  <animation>
    <type>pick</type>
    <object-name>UHFVolume</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/comm/volume</property>
        <step>0.1</step>
        <min>0</min>
        <max>1</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/comm/volume</property>
        <step>-0.1</step>
        <min>0</min>
        <max>1</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/comm/volume</property>
        <step>0.1</step>
        <min>0</min>
        <max>1</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/comm/volume</property>
        <step>-0.1</step>
        <min>0</min>
        <max>1</max>        
      </binding>
    </action>    
  </animation>  
  
  <animation>
    <type>rotate</type>
    <object-name>UHFVolume</object-name>
    <property>instrumentation/comm/volume</property>
    <factor>270.0</factor>
    <axis>
      <x>0</x><y>0</y><z>-1</z>
    </axis>    
    <max>270</max>
    <center>
      <x-m>0.1681</x-m>
      <y-m>0.287</y-m>
      <z-m>-0.103</z-m>
    </center>
  </animation>  
  
  <!-- Frequency Tuning knobs -->
  <animation>
    <type>pick</type>
    <object-name>UHFFreqTune1</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>100</step>
        <min>100.0</min>
        <max>1000.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>-100</step>
        <min>100.0</min>
        <max>1000.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>100</step>
        <min>100.0</min>
        <max>1000.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>-100</step>
        <min>100.0</min>
        <max>1000.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>    
  </animation>  

  <animation>
    <type>pick</type>
    <object-name>UHFFreqTune2</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>1</step>
        <min>100.0</min>
        <max>999.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>-1</step>
        <min>100.0</min>
        <max>999.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>1</step>
        <min>100.0</min>
        <max>999.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>-1</step>
        <min>100.0</min>
        <max>999.0</max>
        <wrap>true</wrap>
        <mask>integer</mask>
      </binding>
    </action>    
  </animation>  

  <animation>
    <type>pick</type>
    <object-name>UHFFreqTune3</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>0.0125</step>
        <min>0.0</min>
        <max>1.0</max>
        <resolution>0.0125</resolution>
        <wrap>true</wrap>
        <mask>decimal</mask>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>-0.0125</step>
        <min>0.0</min>
        <max>1.0</max>
        <resolution>0.0125</resolution>
        <wrap>true</wrap>
        <mask>decimal</mask>
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>0.0125</step>
        <min>0.0</min>
        <max>1.0</max>
        <resolution>0.0125</resolution>
        <wrap>true</wrap>
        <mask>decimal</mask>
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <condition>
          <!-- Only effective in manual mode -->
          <equals>
            <property>controls/instrumentation/uhf/freq-select</property>
            <value>1</value>
          </equals>
        </condition>
        <command>property-adjust</command>
        <property>instrumentation/comm/frequencies/selected-mhz</property>
        <step>-0.0125</step>
        <min>0.0</min>
        <max>1.0</max>
        <resolution>0.0125</resolution>
        <wrap>true</wrap>
        <mask>decimal</mask>
      </binding>
    </action>    
  </animation>  

  <!-- UHF Preset Channel Control -->
  <animation>
    <type>pick</type>
    <object-name>UHFPresetKnob</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <step>1</step>
        <min>0</min>
        <max>20</max>        
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <step>-1</step>
        <min>0</min>
        <max>20</max>        
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <step>1</step>
        <min>0</min>
        <max>20</max>        
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/uhf/preset-channel</property>
        <step>-1</step>
        <min>0</min>
        <max>20</max>        
        <wrap>true</wrap>
      </binding>
    </action>    
  </animation>  
  
  <animation>
    <type>rotate</type>
    <object-name>UHFPresetChannel</object-name>
    <property>controls/instrumentation/uhf/preset-channel</property>
    <factor>-18.0</factor><!-- 360 / 20 channels -->
    <axis>
      <x>0</x><y>0</y><z>-1</z>
    </axis>    
    <center>
      <x-m>0.168</x-m>
      <y-m>0.237</y-m>
      <z-m>-0.107</z-m>
    </center>
  </animation>
  
  <!-- TACAN -->
  <animation>
    <type>textranslate</type>
    <object-name>TACANFreq1</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel</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>TACANFreq2</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel</property>
    <factor>-0.1</factor>
    <step>1</step>
    <axis>
     <x>0</x>
     <y>1</y>
     <z>0</z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TACANChannelKnob</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel</property>
    <factor>15</factor><!-- 360 / 20 channels -->
    <axis>
      <x>0</x><y>0</y><z>-1</z>
    </axis>    
    <center>
      <x-m>0.298</x-m>
      <y-m>0.251</y-m>
      <z-m>-0.107</z-m>
    </center>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>TACANChannelKnob</object-name>
    <action>
      <button>0</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/tacan/frequencies/selected-channel</property>
        <step>1</step>
        <min>0</min>
        <max>99</max>        
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/tacan/frequencies/selected-channel</property>
        <step>-1</step>
        <min>0</min>
        <max>99</max>        
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/tacan/frequencies/selected-channel</property>
        <step>1</step>
        <min>0</min>
        <max>99</max>        
        <wrap>true</wrap>
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/tacan/frequencies/selected-channel</property>
        <step>-1</step>
        <min>0</min>
        <max>99</max>        
        <wrap>true</wrap>
      </binding>
    </action>    
  </animation>

  <animation>
    <type>pick</type>
    <object-name>TACANModeOFF</object-name>
    <object-name>TACANModeREC</object-name>
    <object-name>TACANModeTR</object-name>
    <object-name>TACANModeAA</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/tacan-mode</property>
        <step>1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/tacan-mode</property>
        <step>-1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/tacan-mode</property>
        <step>1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/instrumentation/tacan-mode</property>
        <step>-1</step>
        <min>0</min>
        <max>3</max>        
      </binding>
    </action>    
  </animation>

  <animation>
    <type>select</type>
    <object-name>TACANModeOFF</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/tacan-mode</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>TACANModeREC</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/tacan-mode</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>TACANModeTR</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/tacan-mode</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>TACANModeAA</object-name>
    <condition>
      <equals>
        <property>controls/instrumentation/tacan-mode</property>
        <value>3</value>
      </equals>
    </condition>
  </animation>
  
  <!-- RADAR controls -->
  <animation>
    <type>pick</type>
    <object-name>RadarModeOFF</object-name>
    <object-name>RadarModeSTBY</object-name>
    <object-name>RadarModeSRCH</object-name>
    <object-name>RadarModeTC</object-name>
    <object-name>RadarModeAG</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/radar/mode</property>
        <step>1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>
    <action>
      <button>1</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/radar/mode</property>
        <step>-1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>
    <action>
      <name>small increase (scrollwheel)</name>
      <button>3</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/radar/mode</property>
        <step>1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>
    <action>
      <name>small decrease (scrollwheel)</name>
      <button>4</button>
      <repeatable>true</repeatable>
      <binding>
        <command>property-adjust</command>
        <property>controls/radar/mode</property>
        <step>-1</step>
        <min>0</min>
        <max>4</max>        
      </binding>
    </action>    
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>RadarModeOFF</object-name>
    <condition>
      <equals>
        <property>controls/radar/mode</property>
        <value>0</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>RadarModeSTBY</object-name>
    <condition>
      <equals>
        <property>controls/radar/mode</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>RadarModeSRCH</object-name>
    <condition>
      <equals>
        <property>controls/radar/mode</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>RadarModeTC</object-name>
    <condition>
      <equals>
        <property>controls/radar/mode</property>
        <value>3</value>
      </equals>
    </condition>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>RadarModeAG</object-name>
    <condition>
      <equals>
        <property>controls/radar/mode</property>
        <value>4</value>
      </equals>
    </condition>
  </animation>
  
</PropertyList>
