<?xml version="1.0"?>

<!-- Instrument display degC, so these conversions are used:

     degC	degF
     -50	58
       0	32
      50	122
     100	212
     150	302


     Credits :
     =======
     - adapted from G. Neely's Lockheed 1049-H.
-->


<PropertyList>

<params>
 <oil-left>/engines/engine[0]/oil-temperature-degf</oil-left>
 <oil-right>/engines/engine[1]/oil-temperature-degf</oil-right>
</params>

<path>oiltemp.ac</path>

<animation>
  <type>material</type>
  <object-name>OilTemp.Face</object-name>
  <object-name>OilTemp.Needle1</object-name>
  <object-name>OilTemp.Needle2</object-name>
  <emission>
    <red>0.81</red>
    <green>0.40</green>
    <blue>0.20</blue>
    <factor-prop>systems/lighting/internal/engineer/instrument-light</factor-prop>
  </emission>
  <ambient>
    <red>1.0</red>
    <green>1.0</green>
    <blue>1.0</blue>
    <factor-prop>systems/lighting/internal/ambient-light</factor-prop>
  </ambient>
</animation>

<animation>
  <type>rotate</type>
  <object-name>OilTemp.Needle1</object-name>
  <property alias="../../params/oil-left"/>
  <interpolation>
    <entry><ind>-58</ind><dep>  45</dep></entry>
    <entry><ind> 32</ind><dep>22.5</dep></entry>
    <entry><ind>122</ind><dep>   0</dep></entry>
    <entry><ind>302</ind><dep> -45</dep></entry>
  </interpolation>
  <center>
    <x-m>-0.0251</x-m>
    <y-m>0</y-m>
    <z-m>0</z-m>
  </center>
  <axis>
    <x>0</x>
    <y>1</y>
    <z>0</z>
  </axis>
</animation>

<animation>
  <type>rotate</type>
  <object-name>OilTemp.Needle2</object-name>
  <property alias="../../params/oil-right"/>
  <interpolation>
    <entry><ind>-58</ind><dep>  45</dep></entry>
    <entry><ind> 32</ind><dep>22.5</dep></entry>
    <entry><ind>122</ind><dep>   0</dep></entry>
    <entry><ind>302</ind><dep> -45</dep></entry>
  </interpolation>
  <center>
    <x-m>0.0251</x-m>
    <y-m>0</y-m>
    <z-m>0</z-m>
  </center>
  <axis>
    <x>0</x>
    <y>-1</y>
    <z>0</z>
  </axis>
</animation>

</PropertyList>
