<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <path>radaralt.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>knob</object-name>
    <object-name>needle</object-name>
    <object-name>stowed-needle</object-name>
    <object-name>low-lamp</object-name>
    <object-name>low-lamp-off</object-name>
    <object-name>bug</object-name>
    <object-name>off-flag</object-name>

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

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>face</object-name>
    <object-name>needle</object-name>
    <object-name>stowed-needle</object-name>
    <object-name>low-lamp</object-name>
    <object-name>low-lamp-off</object-name>
    <object-name>bug</object-name>
    <object-name>off-flag</object-name>
    <object-name>vitre</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../../../../Effects/Glass/glass</inherits-from>
    <object-name>vitre</object-name>
  </effect>

  <animation>
    <type>material</type>
    <object-name>low-lamp</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <red>   2 </red>
      <green> 2 </green>
      <blue>  2 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>face</object-name>
    <object-name>needle</object-name>
    <object-name>stowed-needle</object-name>
    <object-name>low-lamp</object-name>
    <object-name>low-lamp-off</object-name>
    <object-name>bug</object-name>
    <object-name>off-flag</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>needle</object-name>
    <property>position/gear-agl-ft</property>
    <min>    0 </min>
    <max> 5000 </max>
    <interpolation>
      <entry><ind>    0 </ind><dep>   0 </dep></entry>
      <entry><ind>   10 </ind><dep>  10 </dep></entry>
      <entry><ind>   50 </ind><dep>  43 </dep></entry>
      <entry><ind>  100 </ind><dep>  82 </dep></entry>
      <entry><ind>  150 </ind><dep> 103 </dep></entry>
      <entry><ind>  250 </ind><dep> 125 </dep></entry>
      <entry><ind>  400 </ind><dep> 157 </dep></entry>
      <entry><ind>  500 </ind><dep> 178 </dep></entry>
      <entry><ind>  600 </ind><dep> 191 </dep></entry>
      <entry><ind> 1000 </ind><dep> 221 </dep></entry>
      <entry><ind> 2000 </ind><dep> 262 </dep></entry>
      <entry><ind> 3000 </ind><dep> 281 </dep></entry>
      <entry><ind> 5000 </ind><dep> 319 </dep></entry>
    </interpolation>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- stow needle disabled -->
  <animation>
    <type>select</type>
    <object-name>stowed-needle</object-name>
    <condition>
      <not><property>sim/signals/fdm-initialized</property></not>
    </condition>
  </animation>

  <!-- radar altitude out of range off-flag and stowed-needle -->
  <animation>
    <type>select</type>
    <object-name>off-flag</object-name>
    <condition>
      <not><property>instrumentation/radar-altimeter/radalt-on</property></not>
     </condition>
  </animation>

  <!-- low-altitude limit bug -->
  <animation>
    <name>bug</name>
    <type>rotate</type>
    <object-name>bug</object-name>
    <property>controls/instrumentation/radalt/limit-bug</property>
    <min>    0 </min>
    <max> 5000 </max>
    <interpolation>
      <entry><ind>    0 </ind><dep>   0 </dep></entry>
      <entry><ind>   10 </ind><dep>  10 </dep></entry>
      <entry><ind>   50 </ind><dep>  43 </dep></entry>
      <entry><ind>  100 </ind><dep>  82 </dep></entry>
      <entry><ind>  150 </ind><dep> 103 </dep></entry>
      <entry><ind>  250 </ind><dep> 125 </dep></entry>
      <entry><ind>  400 </ind><dep> 157 </dep></entry>
      <entry><ind>  500 </ind><dep> 178 </dep></entry>
      <entry><ind>  600 </ind><dep> 191 </dep></entry>
      <entry><ind> 1000 </ind><dep> 221 </dep></entry>
      <entry><ind> 2000 </ind><dep> 262 </dep></entry>
      <entry><ind> 3000 </ind><dep> 281 </dep></entry>
      <entry><ind> 5000 </ind><dep> 319 </dep></entry>
    </interpolation>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Minimal Altitude Limit Bug Setting Knob -->
  <animation>
    <type>rotate</type>
    <object-name>knob</object-name>
    <property>controls/instrumentation/radalt/limit-bug</property>
    <factor>-0.5</factor>
    <center>
      <x-m>  0.000 </x-m>
      <y-m> -0.035 </y-m>
      <z-m> -0.035 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>knob</object-name>
    <visible>true</visible>
    <action>
      <button>3</button>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/ctrl</property></not>
          <property>devices/status/keyboard/shift</property>
        </condition>
        <command>property-adjust</command>
        <property>controls/instrumentation/radalt/limit-bug</property>
        <step>1</step>
        <min>0</min>
        <max>5000</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/ctrl</property></not>
          <not><property>devices/status/keyboard/shift</property></not>
        </condition>
        <command>property-adjust</command>
        <property>controls/instrumentation/radalt/limit-bug</property>
        <step>10</step>
        <min>0</min>
        <max>5000</max>
        <wrap>false</wrap>
      </binding>
    </action>
    <action>
      <button>4</button>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/ctrl</property></not>
          <property>devices/status/keyboard/shift</property>
        </condition>
        <command>property-adjust</command>
        <property>controls/instrumentation/radalt/limit-bug</property>
        <step>-1</step>
        <min>0</min>
        <max>5000</max>
        <wrap>false</wrap>
      </binding>
      <binding>
        <condition>
          <not><property>devices/status/keyboard/ctrl</property></not>
          <not><property>devices/status/keyboard/shift</property></not>
        </condition>
        <command>property-adjust</command>
        <property>controls/instrumentation/radalt/limit-bug</property>
        <step>-10</step>
        <min>0</min>
        <max>5000</max>
        <wrap>false</wrap>
      </binding>
    </action>
  </animation>

  <!-- low-altitude warning-light -->
  <animation>
    <type>select</type>
    <object-name>low-lamp</object-name>
    <condition>
      <property>instrumentation/radar-altimeter/low-lamp</property>
    </condition>
  </animation>

</PropertyList>
