<?xml version="1.0"?>

<!-- UVO-15M, pilot's variometer -->

<PropertyList>
 <path>uvo-15m.ac</path>

 <animation>
   <type>material</type>
   <object-name>housing</object-name>
   <object-name>long_needle</object-name>
   <object-name>short_needle</object-name>
   <object-name>dig_p_ones</object-name>
   <object-name>dig_p_dec</object-name>
   <object-name>dig_p_hund</object-name>
   <emission>
     <red>1.0</red>
     <green>0.5</green>
     <blue>0.4</blue>
     <factor-prop>controls/lighting/panel-l_red</factor-prop>
   </emission>
 </animation>

<!-- Needles -->

<animation>
  <type>rotate</type>
  <object-name>long_needle</object-name>
  <property>instrumentation/altimeter[0]/indicated-altitude-ft</property>
  <factor>-0.109728</factor>
  <axis>
    <x>1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
</animation>

<animation>
  <type>rotate</type>
  <object-name>short_needle</object-name>
  <property>instrumentation/altimeter[0]/indicated-altitude-ft</property>
  <factor>-0.0109728</factor>
  <axis>
    <x>1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
</animation>



<!--Pressure digits-->
<animation>
  <type>rotate</type>
  <object-name>dig_p_ones</object-name>
  <property>instrumentation/altimeter[0]/setting-hpa</property>
  <factor>27.0088845014</factor>
  <center>
    <x-m>-0.0153</x-m>
    <y-m>0.0</y-m>
    <z-m>-0.0231</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>-1.0</y>
    <z>0.0</z>
  </axis>
</animation>

<animation>
  <type>rotate</type>
  <object-name>dig_p_dec</object-name>
  <expression>
    <table>
      <mod>
        <product>
          <property>instrumentation/altimeter[0]/setting-hpa</property>
          <value>0.7500616827</value>
        </product>
        <value>100</value>
      </mod>
      <entry><ind>	 0</ind>	<dep>	0</dep></entry>
      <entry><ind>	 9</ind>	<dep>	0</dep></entry>
      <entry><ind>	10</ind>	<dep>	36</dep></entry>
      <entry><ind>	19</ind>	<dep>	36</dep></entry>
      <entry><ind>	20</ind>	<dep>	72</dep></entry>
      <entry><ind>	29</ind>	<dep>	72</dep></entry>
      <entry><ind>	30</ind>	<dep>	108</dep></entry>
      <entry><ind>	39</ind>	<dep>	108</dep></entry>
      <entry><ind>	40</ind>	<dep>	144</dep></entry>
      <entry><ind>	49</ind>	<dep>	144</dep></entry>
      <entry><ind>	50</ind>	<dep>	180</dep></entry>
      <entry><ind>	59</ind>	<dep>	180</dep></entry>
      <entry><ind>	60</ind>	<dep>	216</dep></entry>
      <entry><ind>	69</ind>	<dep>	216</dep></entry>
      <entry><ind>	70</ind>	<dep>	252</dep></entry>
      <entry><ind>	79</ind>	<dep>	252</dep></entry>
      <entry><ind>	80</ind>	<dep>	288</dep></entry>
      <entry><ind>	89</ind>	<dep>	288</dep></entry>
      <entry><ind>	90</ind>	<dep>	324</dep></entry>
      <entry><ind>	99</ind>	<dep>	324</dep></entry>
      <entry><ind>	99.9</ind>	<dep>	359.9</dep></entry>
    </table>
  </expression>
  <center>
    <x-m>-0.0153</x-m>
    <y-m>0.0</y-m>
    <z-m>-0.0231</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>-1.0</y>
    <z>0.0</z>
  </axis>
</animation>

<animation>
  <type>rotate</type>
  <object-name>dig_p_hund</object-name>
  <expression>
    <table>
      <mod>
        <product>
          <property>instrumentation/altimeter[0]/setting-hpa</property>
          <value>0.7500616827</value>
        </product>
        <value>1000</value>
      </mod>
      <entry><ind>	  0</ind>	<dep>	0</dep></entry>
      <entry><ind>	 99</ind>	<dep>	0</dep></entry>
      <entry><ind>	100</ind>	<dep>	36</dep></entry>
      <entry><ind>	199</ind>	<dep>	36</dep></entry>
      <entry><ind>	200</ind>	<dep>	72</dep></entry>
      <entry><ind>	299</ind>	<dep>	72</dep></entry>
      <entry><ind>	300</ind>	<dep>	108</dep></entry>
      <entry><ind>	399</ind>	<dep>	108</dep></entry>
      <entry><ind>	400</ind>	<dep>	144</dep></entry>
      <entry><ind>	499</ind>	<dep>	144</dep></entry>
      <entry><ind>	500</ind>	<dep>	180</dep></entry>
      <entry><ind>	599</ind>	<dep>	180</dep></entry>
      <entry><ind>	600</ind>	<dep>	216</dep></entry>
      <entry><ind>	699</ind>	<dep>	216</dep></entry>
      <entry><ind>	700</ind>	<dep>	252</dep></entry>
      <entry><ind>	799</ind>	<dep>	252</dep></entry>
      <entry><ind>	800</ind>	<dep>	288</dep></entry>
      <entry><ind>	899</ind>	<dep>	288</dep></entry>
      <entry><ind>	900</ind>	<dep>	324</dep></entry>
      <entry><ind>	999</ind>	<dep>	324</dep></entry>
      <entry><ind>	999.9</ind>	<dep>	359.9</dep></entry>
    </table>
  </expression>
  <center>
    <x-m>-0.0153</x-m>
    <y-m>0.0</y-m>
    <z-m>-0.0231</z-m>
  </center>
  <axis>
    <x>0.0</x>
    <y>-1.0</y>
    <z>0.0</z>
  </axis>
</animation>

<animation>
  <type>knob</type>
  <object-name>knob</object-name>
  <property>instrumentation/altimeter[0]/setting-hpa</property>
  <factor>-5</factor>
  <center>
    <x-m>0.0</x-m>
    <y-m>0.034</y-m>
    <z-m>-0.037</z-m>
  </center>
  <axis>
    <x>-1.0</x>
    <y>0.0</y>
    <z>0.0</z>
  </axis>
    <action>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/altimeter[0]/setting-hpa</property>
        <factor>-0.5</factor>
      </binding>
      <binding>
        <command>property-adjust</command>
        <property>instrumentation/altimeter[1]/setting-hpa</property>
        <factor>-0.5</factor>
      </binding>
    </action>
   <hovered>
    <binding>
     <command>set-tooltip</command>
     <tooltip-id>setting-hpa</tooltip-id>
     <label>hPa: %4.1f</label>
     <property>instrumentation/altimeter[0]/setting-hpa</property>
   </binding>
   </hovered>
</animation>

<!-- TEXT OSG -->

  <animation>
    <type>select</type>
    <object-name>textosg</object-name>
    <condition>
      <property>sim/panel-hotspots</property>
    </condition>
  </animation>

  <text>
    <name>textosg</name>
    <type type="string">literal</type>
    <text type="string">UVO-15 Metric</text>
    <draw-text type="bool">true</draw-text>
    <font>Helvetica.txf</font>
    <character-size type="double">0.014</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.05</max-width>
    <font-resolution>
      <width type="int">64</width>
      <height type="int">64</height>
    </font-resolution>
    <alignment>center-center</alignment>
    <offsets>
      <x-m>  0.005 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.000 </z-m>
    </offsets>
  </text>

</PropertyList>
