<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
    #############################################################################
    #    (C) 2007 by Yurik V. Nikiforoff - port for FGFS,  FDM,                 #
    #    2d & 3d instruments, animations, systems and over.                     #
    #    yurik@megasignal.com                                                   #
    #                                                                           #
    #    Updated BARANGER Emmanuel 2015                                         #
    #    Updated BARANGER Emmanuel 09/2022                                      #
    #############################################################################
    DME radio control 3D instrument for Tu-154
-->
<PropertyList>

  <path>dme.ac</path>

  <animation>
    <object-name>base</object-name>
    <object-name>c1</object-name>
    <object-name>c2</object-name>
    <object-name>power</object-name>
    <object-name>reserve</object-name>
    <object-name>dig_f_hi</object-name>
    <object-name>dig_f_low</object-name>
    <object-name>hs_1</object-name>
    <object-name>hs_2</object-name>
    <object-name>hs_3</object-name>
    <object-name>hs_4</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>base</object-name>
    <object-name>c1</object-name>
    <object-name>c2</object-name>
    <object-name>power</object-name>
    <object-name>reserve</object-name>
    <object-name>dig_f_hi</object-name>
    <object-name>dig_f_low</object-name>
    <object-name>hs_1</object-name>
    <object-name>hs_2</object-name>
    <object-name>hs_3</object-name>
    <object-name>hs_4</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>base</object-name>
    <object-name>power</object-name>
    <object-name>reserve</object-name>
    <object-name>dig_f_low</object-name>
    <object-name>dig_f_hi</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>

  <animation>
    <type>rotate</type>
    <object-name>dig_f_hi</object-name>
    <expression>
      <table>
        <difference>
          <property>instrumentation/dme[0]/frequencies/selected-mhz</property>
          <mod>
            <property>instrumentation/dme[0]/frequencies/selected-mhz</property>
            <value>1</value>
          </mod>
        </difference>
        <entry><ind> 108 </ind><dep>   0 </dep></entry>
        <entry><ind> 118 </ind><dep> 360 </dep></entry>
      </table>
    </expression>
    <center>
      <x-m> -0.01754 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00904 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>dig_f_low</object-name>
    <property>instrumentation/dme[0]/frequencies/selected-mhz</property>
    <factor> 360 </factor>
    <center>
      <x-m> -0.03178 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00616 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!--Frequency-->
  <animation>
    <type>knob</type>
    <object-name>c1</object-name>
    <visible>true</visible>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/dme[0]/frequencies/selected-mhz</property>
        <mask>integer</mask>
        <min>108</min>
        <max>118</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <animation>
    <type>knob</type>
    <object-name>c2</object-name>
    <visible>true</visible>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/dme[0]/frequencies/selected-mhz</property>
        <mask>decimal</mask>
        <factor>0.05</factor>
        <min>0</min>
        <max>1</max>
        <wrap>true</wrap>
      </binding>
    </action>
  </animation>

  <!--Power-->
  <animation>
    <type>rotate</type>
    <object-name>power</object-name>
    <property>instrumentation/dme[0]/switch-position[2]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  45 </dep></entry>
      <entry><ind> 1 </ind><dep> -45 </dep></entry>
    </interpolation>
    <center>
      <x-m> 0.00230 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.00868 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_1</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-interpolate</command>
        <property>instrumentation/dme[0]/switch-position[2]</property>
        <value type="double">1</value>
        <time>0.1</time>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_2</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-interpolate</command>
        <property>instrumentation/dme[0]/switch-position[2]</property>
        <value type="double">0</value>
        <time>0.1</time>
      </binding>
    </action>
  </animation>

  <!--Reserve-->
  <animation>
    <type>rotate</type>
    <object-name>reserve</object-name>
    <property>instrumentation/dme[0]/switch-position[3]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  45 </dep></entry>
      <entry><ind> 1 </ind><dep> -45 </dep></entry>
    </interpolation>
    <center>
      <x-m> 0.00230 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.00868 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_3</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-interpolate</command>
        <property>instrumentation/dme[0]/switch-position[3]</property>
        <value type="double">0</value>
        <time>0.1</time>
      </binding>
    </action>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>hs_4</object-name>
    <visible>false</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-interpolate</command>
        <property>instrumentation/dme[0]/switch-position[3]</property>
        <value type="double">1</value>
        <time>0.1</time>
      </binding>
    </action>
  </animation>

</PropertyList>
