<?xml version="1.0"?>

<PropertyList>
	<!-- horizontal situation indicator -->
	<name>HSI</name>
	<path>HSI-2.ac</path>


	<!-- HSI-course-card -->
	<animation>
		<type>rotate</type>
		<object-name>HSI-course-card</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>HSI-course-card</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>
  
	<!--bearing-validity-flag-->
	<animation>
		<type>select</type>
		<object-name>bearing-validity-flag</object-name>
		<condition>
			<or>
				<and>
					<equals>
						<property>instrumentation/nav[0]/in-range</property>
						<value>false</value>
					</equals>
					<equals>
						<property>sim/model/T-4/T-4-nav/selector-ils</property>
						<value>true</value>
					</equals>
				</and>
				<and>
					<equals>
						<property>instrumentation/tacan/in-range</property>
						<value>false</value>
					</equals>
					<equals>
						<property>instrumentation/tacan/switch-position</property>
						<value>1</value>
					</equals>
				</and>
				<and>
					<equals>
						<property>sim/model/T-4/T-4-nav/selector-ils</property>
						<value>false</value>
					</equals>
					<equals>
						<property>instrumentation/tacan/switch-position</property>
						<value>0</value>
					</equals>
				</and>
			</or>
		</condition>
	</animation>
  	<animation>
		<type>rotate</type>
		<object-name>bearing-validity-flag</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>bearing-validity-flag</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>

	<!--course-deviation-indicator off (CDI)-->
	<animation>
		<type>select</type>
		<object-name>course-deviation-indicator-off</object-name>
		<condition>
			<or>
				<less-than>
					<property>systems/electrical/outputs/hsi</property>
					<value>24</value>
				</less-than>
				<and>
					<equals>
						<property>sim/model/T-4/T-4-nav/selector-ils</property>
						<value>false</value>
					</equals>
					<equals>
						<property>instrumentation/tacan/switch-position</property>
						<value>0</value>
					</equals>
				</and>
				<and>
					<equals>
						<property>instrumentation/tacan/switch-position</property>
						<value>1</value>
					</equals>
					<equals>
						<property>instrumentation/tacan/in-range</property>
						<value>false</value>
					</equals>
				</and>
			</or>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>course-deviation-indicator-off</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
  	<animation>
		<type>rotate</type>
		<object-name>course-deviation-indicator-off</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>

	<!--  ILS on CDI  -->
	<!-- ils course-deviation-indicator on-->
	<animation>
		<type>select</type>
		<object-name>course-deviation-indicator-on</object-name>
		<condition>
			<equals>
				<property>sim/model/T-4/T-4-nav/selector-ils</property>
				<value>true</value>
			</equals>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>course-deviation-indicator-on</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
  	<animation>
		<type>rotate</type>
		<object-name>course-deviation-indicator-on</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>course-deviation-indicator-on</object-name>
		<property>instrumentation/nav[0]/heading-needle-deflection</property>
		<interpolation>
			<entry><ind>-10</ind><dep>-0.024</dep></entry>
			<entry><ind>0</ind><dep>0</dep></entry>
			<entry><ind>10</ind><dep>0.024</dep></entry>
		</interpolation>
		<axis><y>1</y></axis>
	</animation>
	<!-- ils to-from (to)-->
	<animation>
		<type>select</type>
		<object-name>to-from-to</object-name>
		<condition>
			<equals>
				<property>instrumentation/nav[0]/to-flag</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
			<equals>
				<property>sim/model/T-4/T-4-nav/selector-ils</property>
				<value>true</value>
			</equals>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>to-from-to</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>to-from-to</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>
	<!-- ils to-from (from)-->
	<animation>
		<type>select</type>
		<object-name>to-from-from</object-name>
		<condition>
			<equals>
				<property>instrumentation/nav[0]/from-flag</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
			<equals>
				<property>sim/model/T-4/T-4-nav/selector-ils</property>
				<value>true</value>
			</equals>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>to-from-from</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>/instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>to-from-from</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>

	<!--  TACAN on CDI  -->
	<!-- tacan course-deviation-indicator on-->
	<animation>
		<type>select</type>
		<object-name>tcn-course-deviation-indicator-on</object-name>
		<condition>
			<equals>
				<property>instrumentation/tacan/in-range</property>
				<value>true</value>
			</equals>
			<equals>
				<property>instrumentation/tacan/switch-position</property>
				<value>1</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>tcn-course-deviation-indicator-on</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
  	<animation>
		<type>rotate</type>
		<object-name>tcn-course-deviation-indicator-on</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>tcn-course-deviation-indicator-on</object-name>
		<property>sim/model/T-4/instrumentation/cdi/needle-deflection</property>
		<interpolation>
			<entry><ind>-10</ind><dep>-0.024</dep></entry>
			<entry><ind>0</ind><dep>0</dep></entry>
			<entry><ind>10</ind><dep>0.024</dep></entry>
		</interpolation>
		<axis><y>1</y></axis>
	</animation>
	<!-- tacan to-from (to)-->
	<animation>
		<type>select</type>
		<object-name>tcn-to-from-to</object-name>
		<condition>
			<equals>
				<property>sim/model/T-4/instrumentation/cdi/to-flag</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
			<equals>
				<property>instrumentation/tacan/switch-position</property>
				<value>1</value>
			</equals>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>tcn-to-from-to</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>tcn-to-from-to</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>
	<!-- tacan to-from (from)-->
	<animation>
		<type>select</type>
		<object-name>tcn-to-from-from</object-name>
		<condition>
			<equals>
				<property>sim/model/T-4/instrumentation/cdi/from-flag</property>
				<value>true</value>
			</equals>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
			<equals>
				<property>instrumentation/tacan/switch-position</property>
				<value>1</value>
			</equals>
		</condition>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>tcn-to-from-from</object-name>
		<condition>
			<greater-than>
				<property>systems/electrical/outputs/hsi</property>
				<value>24</value>
			</greater-than>
		</condition>
		<property>/instrumentation/heading-indicator-fg/indicated-heading-deg</property>
		<axis><x>1</x></axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>tcn-to-from-from</object-name>
		<property>instrumentation/nav[1]/radials/selected-deg</property>
		<axis><x>-1</x></axis>
	</animation>


	<!-- lighting -->

	<animation>
		<object-name>bearing-validity-flag</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>HSI-course-card</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>course-deviation-indicator-off</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>course-deviation-indicator-on</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>tcn-course-deviation-indicator-on</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>tcn-to-from-to</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>tcn-to-from-from</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>
	<animation>
		<object-name>aircraft-symbol</object-name>
		<type>material</type>
		<emission> 
			<factor-prop>controls/lighting/instruments-norm</factor-prop>
			<red>0.70</red>
			<green>0.49</green>
			<blue>0.26</blue>
		</emission>
	</animation>

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

</PropertyList>
