<?xml version="1.0"?>
<PropertyList>

	<path>A-10-ai.ac</path>

	<animation>
		<type>select</type>
		<object-name>off-flag</object-name>
		<condition>
			<less-than>
				<property>systems/electrical/outputs/adi</property>
				<value>24</value>
			</less-than>
		</condition>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>sphere</object-name>
        <property>orientation/roll-deg</property>
		<center>
			<x-m>0</x-m>
			<y-m>0.0</y-m>
			<z-m>0.0</z-m>
		</center>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>sphere</object-name>
        <property>orientation/pitch-deg</property>
		<center>
			<x-m>-0.0522</x-m>
			<y-m>0.0</y-m>
			<z-m>0.0023</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- ILS mode -->
	<animation>
		<type>select</type>
		<object-name>ils-flag</object-name>
		<condition>
			<or>
				
				<less-than>
					<property>systems/electrical/outputs/adi</property>
					<value>24</value>
				</less-than>
				<equals>
					<property>instrumentation/nav[0]/in-range</property>
					<value>false</value>
				</equals>
			</or>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>glide-slope-index</object-name>
		<condition>
			<equals>
				<property>instrumentation/nav[0]/has-gs</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/adi</property>
				<value>24</value>
			</greater-than>
		</condition>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>glide-slope-index</object-name>
		<condition>
			<equals>
				<property>instrumentation/nav[0]/gs-in-range</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/adi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/nav[0]/gs-needle-deflection</property>
		<interpolation>
			<entry>
				<ind>-2.5</ind>
				<dep>-0.036</dep>
			</entry>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>2.5</ind>
				<dep>0.036</dep>
			</entry>
		</interpolation>
		<axis>
			<x>-0.087</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>bank-index</object-name>
		<property>instrumentation/attitude-indicator/indicated-roll-deg</property>
		<min-deg>-120</min-deg>
		<max-deg>120</max-deg>
		<center>
			<x-m>-0.0015</x-m>
			<y-m>0</y-m>
			<z-m>0.0064</z-m>
		</center>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

<!-- ADI's bars -->

	<animation>
		<type>select</type>
		<object-name>yaw-steering-bar</object-name>
		<condition>
            <property>instrumentation/afds/inputs/FD</property>
		</condition>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>yaw-steering-bar</object-name>
        <property>autopilot/internal/target-roll-deg</property>
        <factor>0.001</factor>
        <axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </axis>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>yaw-steering-bar</object-name>
        <property>orientation/roll-deg</property>
        <factor>0.001</factor>
        <axis>
            <x>0</x>
            <y>-1</y>
            <z>0</z>
        </axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>pitch-steering-bar</object-name>
		<condition>
            <property>instrumentation/afds/inputs/FD</property>
		</condition>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>pitch-steering-bar</object-name>
        <property>autopilot/internal/target-pitch-deg</property>
        <factor>0.00168</factor>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>1</z>
        </axis>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>pitch-steering-bar</object-name>
        <property>orientation/pitch-deg</property>
        <factor>0.00168</factor>
        <axis>
            <x>0</x>
            <y>0</y>
            <z>-1</z>
        </axis>
	</animation>

<!--
<animation>
		<type>translate</type>
		<object-name>nav-pitch-steering-bar</object-name>

<condition>
			<equals>
				<property>instrumentation/nav[0]/gs-in-range</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/adi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/nav[0]/gs-needle-deflection</property>
		<interpolation>
			<entry>
				<ind>-2.5</ind>
				<dep>-0.036</dep>
			</entry>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>2.5</ind>
				<dep>0.036</dep>
			</entry>
		</interpolation>
		<axis>
			<x>-0.087</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>
	
-->
	<!-- course-flag -->
	<animation>
		<type>select</type>
		<object-name>course-flag</object-name>
		<condition>
			
					<not>
						<property>instrumentation/nav[0]/in-range</property>
					</not>
					
		</condition>
	</animation>

	<!-- slip-ball-->
	<animation>
		<type>rotate</type>
		<object-name>slip-ball</object-name>
		<property>instrumentation/slip-skid-ball/indicated-slip-skid</property>
		<factor>8</factor>
		<min-deg>-11</min-deg>
		<max-deg>11</max-deg>
		<center>
			<x-m>0</x-m>
			<y-m>0</y-m>
			<z-m>0.0279031</z-m> 
		</center>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- lighting -->

	<animation>
		<object-name>mount</object-name>
		<type>material</type>
		<emission>
			<factor-prop>controls/lighting/panel-norm</factor-prop>
			<red>0.45</red>
			<green>0.34</green>
			<blue>0.18</blue>
		</emission>
	</animation>

	<animation>
	<type>material</type>
		<object-name>ils-flag</object-name>
		<object-name>off-flag</object-name>
		<object-name>course-flag</object-name>
		<object-name>ring-slip</object-name>
		<object-name>bank-index</object-name>
		<object-name>ai-ring</object-name>
		<object-name>gs-scale</object-name>
		<object-name>knob-index</object-name>

		<emission>
			<factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
			<red>0.045</red>
			<green>0.025</green>
			<blue>0.015</blue>
		</emission>
	</animation>

	<animation>
		
		<type>material</type>
		<object-name>sphere</object-name>
		<object-name>reticl</object-name>
		<object-name>slip-ball</object-name>
		<object-name>glide-slope-index</object-name>
		<object-name>bank-index</object-name>
		<emission> 
			<factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
			<red>0.045</red>
			<green>0.025</green>
			<blue>0.015</blue>
		</emission>
	</animation>

	<animation>
		
		<type>material</type>
		<object-name>yaw-steering-bar</object-name>
		<object-name>pitch-steering-bar</object-name>
		<emission>
			<red>0.9</red>
			<green>0.7</green>
			<blue>0.0</blue>
		</emission>
	</animation>

	<animation>
		<type>range</type>
		<min-m>0</min-m>
		<max-m>5</max-m>
	</animation>

</PropertyList>
