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

<PropertyList>
  <path>tacan.ac</path>
  <animation>
    <!-- object name in ac file -->
    <object-name>tacan.alphaX</object-name>
    <object-name>tacan.alphaY</object-name>
    <object-name>tacan.knob1</object-name>
    <object-name>tacan.knob2</object-name>
    <object-name>tacan.knob_mode</object-name>
    <object-name>tacan.knob_x/y</object-name>
    <object-name>tacan.num-0</object-name>
    <object-name>tacan.num-1</object-name>
    <object-name>tacan.num-2</object-name>
    <object-name>tacan.texte</object-name>
  </animation>

  <animation>
    <!-- lights : illuminations -->
    <type>material</type>
    <object-name>tacan.alphaX</object-name>
    <object-name>tacan.alphaY</object-name>
    <object-name>tacan.num-0</object-name>
    <object-name>tacan.num-1</object-name>
    <object-name>tacan.num-2</object-name>
    <object-name>tacan.texte</object-name>
    <emission>
      <factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
      <red>   0.1 </red>
      <green> 0.5 </green>
      <blue>  0.2 </blue>
    </emission>
  </animation>
  <animation>
    <!-- lights : flood -->
    <type>material</type>
    <object-name>tacan.knob1</object-name>
    <object-name>tacan.knob2</object-name>
    <object-name>tacan.knob_mode</object-name>
    <object-name>tacan.knob_x/y</object-name>
    <emission>
      <factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
      <red>   0.012 </red>
      <green> 0.06 </green>
      <blue>  0.02 </blue>
    </emission>
  </animation>

  <animation>
    <name>tacan.display</name>
    <object-name>tacan.num-0</object-name>
    <object-name>tacan.num-1</object-name>
    <object-name>tacan.num-2</object-name>
    <object-name>tacan.alphaX</object-name>
    <object-name>tacan.alphaY</object-name>
  </animation>

  <animation>
    <type>select</type>
    <object-name>tacan.alphaX</object-name>
    <condition>
      <equals>
        <property>/instrumentation/tacan/frequencies/selected-channel[4]</property>
        <value>X</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>tacan.alphaY</object-name>
    <condition>
      <equals>
        <property>/instrumentation/tacan/frequencies/selected-channel[4]</property>
        <value>Y</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>tacan.knob1</object-name>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/tacan/frequencies/selected-channel</property>
        <step>10</step>
        <min>17</min>
        <max>126</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation> 
  <animation>
    <type>rotate</type>
    <object-name>tacan.knob1</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel[2]</property>
    <factor>36</factor>
    <center>
      <x-m>-3.3503</x-m>
      <y-m>0.32361</y-m>
      <z-m>-0.59137</z-m>
    </center>
    <axis>
      <x>0</x>
      <y>0</y>
      <z>1</z>
    </axis>
  </animation>


  <animation>
    <type>knob</type>
    <object-name>tacan.knob2</object-name>
    <action>
      <binding>
        <command>property-cycle</command>
        <property>instrumentation/tacan/frequencies/selected-channel[3]</property>
        <value>0</value>
        <value>1</value>
        <value>2</value>
        <value>3</value>
        <value>4</value>
        <value>5</value>
        <value>6</value>
        <value>7</value>
        <value>8</value>
        <value>9</value>
      </binding>
    </action>
  </animation> 
  <animation>
    <type>rotate</type>
    <object-name>tacan.knob2</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel[3]</property>
    <factor>36</factor>
    <center>
      <x-m>-3.3504</x-m>
      <y-m>0.34507</y-m>
      <z-m>-0.59137</z-m>
    </center>
    <axis>
      <x>0</x>
      <y>0</y>
      <z>1</z>
    </axis>
  </animation>

   <animation>
    <type>knob</type>
    <object-name>tacan.knob_x/y</object-name>
    <offset>0</offset>
    <action>
      <binding>
        <command>property-cycle</command>
        <property>instrumentation/tacan/frequencies/selected-channel[4]</property>
        <value>X</value>
        <value>Y</value>
        <wrap>false</wrap>
      </binding>
    </action>
  </animation>
  <animation>
    <type>rotate</type>
    <object-name>tacan.knob_x/y</object-name>
    <property>instrumentation/tacan/frequencies/XPos</property>
    <factor>35</factor>
    <center>
      <x-m>-3.3503</x-m>
      <y-m>0.32361</y-m>
      <z-m>-0.59137</z-m>
    </center>
    <axis>
      <x>0</x>
      <y>0</y>
      <z>1</z>
    </axis>
  </animation>



  <animation>
    <type>textranslate</type>
    <object-name>tacan.num-0</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel[1]</property>
    <factor>-0.1</factor>
    <offset>0</offset>
    <axis>
      <x> 0</x>
      <y>-1</y>
      <z> 0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>tacan.num-1</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel[2]</property>
    <factor>-0.1</factor>
    <offset>0</offset>
    <axis>
      <x> 0</x>
      <y>-1</y>
      <z> 0</z>
    </axis>
  </animation>

  <animation>
    <type>textranslate</type>
    <object-name>tacan.num-2</object-name>
    <property>instrumentation/tacan/frequencies/selected-channel[3]</property>
    <factor>-0.1</factor>
    <offset>0</offset>
    <axis>
      <x> 0</x>
      <y>-1</y>
      <z> 0</z>
    </axis>
  </animation>

  <!--
================================================================================
                                                                        TEXT OSG
================================================================================
  -->
  <text>
    <name>tacan.textosg</name>
    <type type="string">literal</type>
    <text type="string">Tacan</text>
    <draw-text type="bool">true</draw-text>
    <font>Helvetica.txf</font>
    <character-size type="double">0.016</character-size>
    <character-aspect-ratio type="double">1.0</character-aspect-ratio>
    <axis-alignment>yz-plane</axis-alignment>
    <max-height>0.06</max-height>
    <max-width>0.08</max-width>
    <font-resolution>
      <width type="int">64</width>
      <height type="int">64</height>
    </font-resolution>
    <alignment>center-center</alignment>
    <offsets>
      <x-m>.02</x-m>
      <y-m>0</y-m>
      <z-m>0</z-m>
    </offsets>
  </text>

  <animation>
    <type>material</type>
    <object-name>tacan.textosg</object-name>
    <emission>
      <red>1</red>
      <green>0.2</green>
      <blue>0.2</blue>
    </emission>
  </animation>
  <animation>
    <type>select</type>
    <object-name>tacan.textosg</object-name>
    <condition>
      <property>sim/panel-hotspots</property>
    </condition>
  </animation>

</PropertyList>
