<?xml version="1.0" ?>

<PropertyList>
	<path>FlapTrim.ac</path>
	
	<animation>
		<type>noshadow</type>
		<object-name>Flap-Trim</object-name>
	</animation>

	<animation>
		<type>material</type>
		<object-name>TrimScale</object-name>
		<object-name>ElevatorTrimControl</object-name>
		<emission>
			<red>0.1</red>
			<green>0.1</green>
			<blue>0.1</blue>
			<factor-prop>/controls/lighting/panel-norm</factor-prop>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<object-name>FlapControl</object-name>
		<object-name>ElevatorTrimIndicator</object-name>
		<object-name>TrimwheelElevatorChassis</object-name>
		<emission>
			<red>0.05</red>
			<green>0.05</green>
			<blue>0.05</blue>
			<factor-prop>/controls/lighting/panel-norm</factor-prop>
		</emission>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>ElevatorTrimControl</object-name>
		<property>fdm/jsbsim/fcs/elevator-trim-knob</property>
		<factor>1500</factor>
		<center>
			<x-m>0.05924</x-m>
			<y-m>0.0</y-m>
			<z-m>0.05231</z-m>
		</center>
		<axis>
			<x>0.0</x>
			<y>-1.0</y>
			<z>0.0</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>ElevatorTrimIndicator</object-name>
		<property>fdm/jsbsim/fcs/elevator-trim-knob</property>
		<factor>20.0</factor>
		<center>
			<x-m>0.05924</x-m>
			<y-m>0.0</y-m>
			<z-m>0.05231</z-m>
		</center>
		<axis>
			<x>0.0</x>
			<y>-1.0</y>
			<z>0.0</z>
		</axis>
	</animation>
	
	<animation>
		<type>pick</type>
		<object-name>ElevatorTrimControl</object-name>
		<action>
			<button>1</button>
			<button>3</button>
			<repeatable type="bool">false</repeatable>
			<binding>
				<command>property-adjust</command>
				<property>controls/flight/elevator-trim</property>
				<step>0.01</step>
				<min>-1</min>
				<max>1</max>
				<wrap>false</wrap>
			</binding>
		</action>
		<action>
			<button>0</button>
			<button>4</button>
			<repeatable type="bool">false</repeatable>
			<binding>
				<command>property-adjust</command>
				<property>controls/flight/elevator-trim</property>
				<step>-0.01</step>
				<min>-1</min>
				<max>1</max>
				<wrap>false</wrap>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>FlapControl</object-name>
		<property>surface-positions/flap-pos-norm</property>
		<factor>70</factor>
		<center>
			<x-m>-0.0</x-m>
			<y-m>0</y-m>
			<z-m>0.002336</z-m>
		</center>
		<axis>
			<x>0.0</x>
			<y>1.0</y>
			<z>0.0</z>
		</axis>
		<center>
			<x-m>0.0</x-m>
			<y-m>0</y-m>
			<z-m>-0.06035</z-m>
		</center>
	</animation>
	
	<animation>
		<type>pick</type>
		<object-name>FlapControl</object-name>
		<action>
			<button>0</button>
			<button>4</button>
			<repeatable type="bool">false</repeatable>
			<binding>
				<command>nasal</command>
				<script>controls.flapsDown(1);</script>
			</binding>
		</action>
		<action>
			<button>1</button>
			<button>3</button>
			<repeatable type="bool">false</repeatable>
			<binding>
                <command>nasal</command>
                <script>controls.flapsDown(-1);</script>
			</binding>
		</action>
	</animation>
</PropertyList>
