<?xml version="1.0"?>
<!-- Fuel Control Panel -->
<PropertyList>
	<path>../../../../Aircraft/Buccaneer/Instruments/fuel_panel.ac</path>

	<model>
		<path>AI/Aircraft/Buccaneer/Instruments/fuel_gauges.xml</path>
		<offsets>
			<x-m>-0.140952</x-m>
			<y-m>0</y-m>
			<z-m>0.00775151</z-m>
		</offsets>
	</model>

	<!-- Proportioner mag indicators -->
	<animation>
		<type>textranslate</type>
		<property>/consumables/fuel/tank[8]/running</property>
		<object-name>proportioner-port</object-name>
		<factor>0.5</factor>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>textranslate</type>
		<object-name>proportioner-stbd</object-name>
		<property>/consumables/fuel/tank[9]/running</property>
		<factor>0.5</factor>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>cross-feed-indicator</object-name>
		<property>/controls/fuel/cross-connect</property>
		<factor>90</factor>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
		<center>
			<x-m>-0.0277241</x-m>
			<y-m>-0.0187016</y-m>
			<z-m>0.00290642</z-m>
		</center>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>cross-feed-sw</object-name>
		<property>/controls/fuel/cross-connect</property>
		<factor>60</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>0</x-m>
			<y-m>-0.0196378</y-m>
			<z-m>0.00128953</z-m>
		</center>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>cross-feed-sw</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/cross-connect</property>
			</binding>
		</action>
	</animation>
	
<animation>
		<type>rotate</type>
		<object-name>tank_tx_sw</object-name>
		<property>/controls/fuel/TX-fwd</property>
		<factor>60</factor>
		<offset-deg>-30</offset-deg>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	<center>
			<x-m>-0.01124030</x-m>
			<y-m>-0.0676128</y-m>
			<z-m>-0.00035787</z-m>
		</center>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>tank_tx_sw</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/TX-fwd</property>
			</binding>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/TX-aft</property>
			</binding>
		</action>
	</animation>

	<!-- Fuel/No Air switches -->
	<animation>
		<type>rotate</type>
		<object-name>fna2-lever</object-name>
		<property>/controls/fuel/FNA-2</property>
		<offset-deg>-60</offset-deg>
		<factor>60</factor>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-0.203431</x-m>
			<y-m>-0.094273</y-m>
			<z-m>-0.0028125</z-m>
		</center>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>fna2-lever</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/FNA-2</property>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fna6-lever</object-name>
		<property>/controls/fuel/FNA-6</property>
		<offset-deg>-60</offset-deg>
		<factor>60</factor>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-0.166228</x-m>
			<y-m>-0.094273</y-m>
			<z-m>-0.0028125</z-m>
		</center>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>fna6-lever</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/FNA-6</property>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fna3-lever</object-name>
		<property>/controls/fuel/FNA-3</property>
		<offset-deg>-60</offset-deg>
		<factor>60</factor>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-0.137107</x-m>
			<y-m>0.0869929</y-m>
			<z-m>0.0081704</z-m>
		</center>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>fna3-lever</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/FNA-3</property>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fna5-lever</object-name>
		<property>/controls/fuel/FNA-5</property>
		<offset-deg>-60</offset-deg>
		<factor>60</factor>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-0.0829775</x-m>
			<y-m>0.0916364</y-m>
			<z-m>0.0081704</z-m>
		</center>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>fna5-lever</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/FNA-5</property>
			</binding>
		</action>
	</animation>

	<!-- Fuel contents supply swap -->
	<animation>
		<type>rotate</type>
		<object-name>fuel_ind_sw</object-name>
		<property>/controls/fuel/indicator-supply-swap</property>
		<factor>60</factor>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-0.0264704</x-m>
			<y-m>0.0360727</y-m>
			<z-m>0.00141737</z-m>
		</center>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>fuel_ind_sw</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-toggle</command>
				<property>/controls/fuel/indicator-supply-swap</property>
			</binding>
		</action>
	</animation>


	<!-- Parking Brake -->
	<animation>
		<type>pick</type>
		<object-name>handbrake_handle</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>nasal</command>
				<script>controls.applyParkingBrake(1)</script>
			</binding>
		</action>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>handbrake_handle</object-name>
		<property>/controls/gear/brake-parking</property>
		<factor>90</factor>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>-1</z>
		</axis>
		<center>
			<x-m>-0.123248</x-m>
			<y-m>-0.0888965</y-m>
			<z-m>0.0195329</z-m>
		</center>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>handbrake_handle</object-name>
		<property>/controls/gear/brake-parking</property>
		<factor>0.03</factor>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>

	<!-- Recuperator Check -->
	<animation>
		<type>pick</type>
		<object-name>proportioner_test_lid</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>nasal</command>
				<script>
					interpolate("sim/model/buccaneer/controls/recuperator_check_safety",1,0.5);
				</script>
			</binding>
		</action>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>proportioner_test_lid</object-name>
		<property>/sim/model/buccaneer/controls/recuperator_check_safety</property>
		<factor>90</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
		<center>
			<x-m>-0.0250382</x-m>
			<y-m>0.0906712</y-m>
			<z-m>0.0161025</z-m>
		</center>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>proportioner_test_button</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<binding>
				<command>property-assign</command>
				<property>/controls/fuel/recuperator-check</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>/controls/fuel/recuperator-check</property>
					<value>0</value>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>/sim/model/buccaneer/controls/recuperator_check_safety</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>proportioner_test_button</object-name>
		<property>/controls/fuel/recuperator-check</property>
		<factor>0.008</factor>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>-1</z>
		</axis>
	</animation>

	<!-- Fuel Jettison Knob -->
	<animation>
		<type>rotate</type>
		<object-name>Knob</object-name>
		<property>/controls/fuel/dump-valve-lever-pos</property>
		<interpolation>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>1</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>2</ind>
				<dep>90</dep>
			</entry>
		</interpolation>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>-1</z>
		</axis>
		<center>
			<x-m>0.0564852</x-m>
			<y-m>0.0469756</y-m>
			<z-m>0.0145317</z-m>
		</center>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>Knob</object-name>
		<property>/controls/fuel/dump-valve-lever-pos</property>
		<interpolation>
			<entry>
				<ind>0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>1</ind>
				<dep>0.005</dep>
			</entry>
			<entry>
				<ind>2</ind>
				<dep>0.005</dep>
			</entry>
		</interpolation>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<visible>true</visible>
		<object-name>Knob</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>property-assign</command>
				<property>/controls/fuel/dump-valve-lever</property>
				<value>1</value>
			</binding>
		</action>
	</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>

  <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>

	<!-- Noshadow -->
	<animation>
		<type>noshadow</type>
	</animation>

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

</PropertyList>