<?xml version="1.0"?>

<!-- Nav Display -->

<PropertyList>

	<path>../../../../Aircraft/Buccaneer/Instruments/nav_display.ac</path>

	<animation>
		<condition>
			<not>
				<property>/sim/model/buccaneer/controls/compass_lock</property>
			</not>
		</condition>
		<type>rotate</type>
		<property>/instrumentation/master-reference-gyro/indicated-hdg-deg</property>
		<object-name>compass_card</object-name>
		<object-name>heading_pointer</object-name>
		<object-name>disk-dg</object-name>
		<interpolation>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>360</ind>
				<dep>360</dep>
			</entry>
		</interpolation>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>disk-compass</object-name>
		<condition>
			<property>/instrumentation/heading-indicator/heading-source</property>
		</condition>
	</animation>
	<!--
	<animation>
		<type>select</type>
		<object-name>compass_DG_flag</object-name>
		<condition>
			<not>
				<property>/instrumentation/heading-indicator/heading-source</property>
			</not>
		</condition>
	</animation>
-->
	<!--<animation>
		<condition>
			<not>
				<property>/sim/model/buccaneer/controls/compass_lock</property>
			</not>
		</condition>
		<type>rotate</type>
		<object-name>dg_compass_card</object-name>
		<object-name>heading_pointer1</object-name>
		<object-name>disk-dg</object-name>
		<property>/instrumentation/master-reference-gyro/indicated-hdg-deg</property>
		<interpolation>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>360</ind>
				<dep>360</dep>
			</entry>
		</interpolation>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>-->

	<!--<animation>
		<type>texrotate</type>
		<object-name>disk-dg</object-name>
		<property>/instrumentation/master-reference-gyro/indicated-hdg-deg</property>
		<factor>1</factor>
		<min>-360.0</min>
		<max>360.0</max>
		<center>
			<x>0.5</x>
			<y>0.5</y>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>-->

	<animation>
		<type>texmultiple</type>
		<object-name>disk-dg</object-name>
		<transform>
			<property>/instrumentation/tacan/indicated-distance-nm</property>
			<subtype>textranslate</subtype>
			<factor>0.003571</factor>
			<max>0.425</max>
			<min>-0.425</min>
			<axis>
				<x>0</x>
				<y>1</y>
				<z>0</z>
			</axis>
		</transform>
		<transform>
			<property>/instrumentation/tacan/indicated-bearing-true-deg</property>
			<subtype>texrotate</subtype>
			<factor>1</factor>
			<min>-360</min>
			<max>360.0</max>
			<center>
				<x>0.5</x>
				<y>0.5</y>
			</center>
			<axis>
				<x>0</x>
				<y>0</y>
				<z>1</z>
			</axis>
		</transform>
	</animation>

	<animation>
		<type>select</type>
		<object-name>disk-dg</object-name>
		<condition>
			<not>
				<property>/instrumentation/heading-indicator/heading-source</property>
			</not>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>flag-DG</object-name>
		<condition>
			<not>
				<property>/instrumentation/heading-indicator/heading-source</property>
			</not>
		</condition>
	</animation>

	<!-- Heading Bug and knob -->
	<animation>
		<type>rotate</type>
		<object-name>heading_pointer</object-name>
		<property>/autopilot/settings/heading-bug-deg</property>
		<interpolation>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>360</ind>
				<dep>360</dep>
			</entry>
		</interpolation>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<visible>false</visible>
		<object-name>hdg_knob_up</object-name>
		<action>
			<button>0</button>
			<repeatable>true</repeatable>
			<binding>
				<command>property-adjust</command>
				<property>/autopilot/settings/heading-bug-deg</property>
				<step>5</step>
				<min>0</min>
				<max>359</max>
				<wrap>1</wrap>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>hdg_knob_down</object-name>
		<visible>false</visible>
		<action>
			<button>0</button>
			<repeatable>true</repeatable>
			<binding>
				<command>property-adjust</command>
				<property>/autopilot/settings/heading-bug-deg</property>
				<step>-5</step>
				<min>0</min>
				<max>359</max>
				<wrap>1</wrap>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>hdg_knob</object-name>
		<property>/autopilot/settings/heading-bug-deg</property>
		<interpolation>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>360</ind>
				<dep>3600</dep>
			</entry>
		</interpolation>
		<center>
			<x-m>0.00888639</x-m>
			<y-m>-0.0733985</y-m>
			<z-m>-0.0808194</z-m>
		</center>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- DG select button -->

	<animation>
		<type>pick</type>
		<object-name>dg_select</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-cycle</command>
				<property>/instrumentation/heading-indicator/heading-source</property>
				<value>0</value>
				<value>1</value>
			</binding>
			<binding>
				<command>property-cycle</command>
				<property>/instrumentation/master-reference-gyro/heading-source</property>
				<value>0</value>
				<value>1</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>/sim/model/buccaneer/controls/dg-toggle</property>
				<value type="int">1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>/sim/model/buccaneer/controls/dg-toggle</property>
					<value type="int">0</value>
				</binding>
			</mod-up>
		</action>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>dg_select</object-name>
		<property>/sim/model/buccaneer/controls/dg-toggle</property>
		<factor>0.005</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- Day/Night ILS marker switch  -->
	<animation>
		<type>pick</type>
		<object-name>day_night_switch</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-cycle</command>
				<property>/sim/model/buccaneer/controls/ILS_day_night_switch</property>
				<value>0</value>
				<value>28</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>day_night_switch</object-name>
		<property>/sim/model/buccaneer/controls/ILS_day_night_switch</property>
		<factor>0.000357</factor>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- TACAN Range -->
	<animation>
		<type>textranslate</type>
		<object-name>distance_100</object-name>
		<property>/instrumentation/tacan/indicated-distance-nm</property>
		<factor>0.001</factor>
		<step>100</step>
		<scroll>1</scroll>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>
	<animation>
		<type>textranslate</type>
		<object-name>distance_10</object-name>
		<property>/instrumentation/tacan/indicated-distance-nm</property>
		<factor>0.01</factor>
		<step>10</step>
		<scroll>1</scroll>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>
	<animation>
		<type>textranslate</type>
		<object-name>distance_1</object-name>
		<property>/instrumentation/tacan/indicated-distance-nm</property>
		<factor>0.1</factor>
		<step>1</step>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<!-- Panel Lighting -->

	<animation>
		<type>material</type>
		<object-name>panel-lighting-group</object-name>
		<emission>
			<factor-prop>/systems/electrical/outputs/panel-floodlighting</factor-prop>
			<red>0.03125</red>
			<green>0.0089</green>
			<blue>0.0089</blue>
		</emission>
	</animation>

	<!-- Instrument Lighting -->
	<animation>
		<type>material</type>
		<object-name>lighting-group</object-name>
		<emission>
			<factor-prop>/systems/electrical/outputs/instrument-lighting</factor-prop>
			<red>0.03125</red>
			<green>0.0089</green>
			<blue>0.0089</blue>
		</emission>
	</animation>


	<!-- Flags are always lit so long as MRG power available -->
	<animation>
		<object-name>GS_flag</object-name>
		<object-name>beam_flag</object-name>
		<type>material</type>
		<emission>
			<factor-prop>/systems/electrical/outputs/MRG</factor-prop>
			<red>0.0086956</red>
			<green>0.0086956</green>
			<blue>0.0086956</blue>
		</emission>
	</animation>

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

</PropertyList>