<?xml version="1.0"?>

<PropertyList>

 <path>alt.ac</path>

<!--    <effect>
        <inherits-from>Aircraft/c170b/Models/Effects/interior/c170b-interior-compartment-1</inherits-from>
        <object-name>Needle100</object-name>
        <object-name>Needle1000</object-name>
        <object-name>Needle10000</object-name>
        <object-name>inhg</object-name>
        <object-name>disk</object-name>
        <object-name>face</object-name>
    </effect> -->

	<animation>
		<type>material</type>
        <object-name>Needle100</object-name>
        <object-name>Needle1000</object-name>
        <object-name>Needle10000</object-name>
        <object-name>inhg</object-name>
        <object-name>Face</object-name>
		<emission>
			<red>1.00</red>
			<green>0.65</green>
			<blue>0.25</blue>
			<factor-prop>/sim/model/pa38/lighting/instruments</factor-prop>
		</emission>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>Needle100</object-name>
		<property>/instrumentation/altimeter/indicated-altitude-ft</property>
		<factor>0.36</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>Needle1000</object-name>
		<property>/instrumentation/altimeter/indicated-altitude-ft</property>
		<factor>0.036</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>Needle10000</object-name>
		<property>/instrumentation/altimeter/indicated-altitude-ft</property>
		<factor>0.0036</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>texrotate</type>
		<object-name>inhg</object-name>
		<property>/instrumentation/altimeter/setting-inhg</property>
		<interpolation>
			<entry>
				<ind>27.90</ind>
				<dep>0.0</dep>
			</entry>
			<entry>
				<ind>28.0</ind>
				<dep>9.35</dep>
			</entry>
			<entry>
				<ind>28.5</ind>
				<dep>59.0</dep>
			</entry>
			<entry>
				<ind>29.0</ind>
				<dep>109.0</dep>
			</entry>
			<entry>
				<ind>29.5</ind>
				<dep>159.5</dep>
			</entry>
			<entry>
				<ind>29.9</ind>
				<dep>200.0</dep>
			</entry>
			<entry>
				<ind>30.0</ind>
				<dep>210.0</dep>
			</entry>
			<entry>
				<ind>30.5</ind>
				<dep>261.0</dep>
			</entry>
			<entry>
				<ind>31.0</ind>
				<dep>310.0</dep>
			</entry>
			<entry>
				<ind>31.4</ind>
				<dep>350.0</dep>
			</entry>
		</interpolation>
		<center>
			<x>0.50</x>
			<y>0.50</y>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>-1</z>
		</axis>
	</animation>

  <!-- Altimeter -->
	<animation>
		<type>knob</type>
		<object-name>disk</object-name>
		<property>/instrumentation/altimeter/setting-inhg</property>
		<factor>-800</factor>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>0.0</x-m>
			<y-m>-0.035809</y-m>
			<z-m>-0.036972</z-m>
		</center>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>/instrumentation/altimeter/setting-inhg</property>
				<factor>0.01</factor>
				<min>26.0</min>
				<max>33.0</max>
				<wrap>false</wrap>
			</binding>
			<binding>
				<command>nasal</command>
				<script>pa38.click("dial")</script>
			</binding>
		</action>  
		<hovered>
			<binding>
				<command>set-tooltip</command>
				<tooltip-id>alt-setting</tooltip-id>
				<label>Altimeter In Hg: %5.2f</label>
				<property>instrumentation/altimeter/setting-inhg</property>
			</binding>
		</hovered>  
	</animation>

</PropertyList>
