<?xml version="1.0"?>
<!--
    This file is part of do228

    The do228 is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    The do228 is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with do228.  If not, see <http://www.gnu.org/licenses/>.

    Dornier DO228 simulation by Benedikt Wolf (D-ECHO)
    Started 06/2020
-->

<PropertyList>

	<path>pedestal.ac</path>
	
	<!--	MODELS	-->
	<!--	FMS (UNS-1Ew)	-->
	<model>
		<name>FMS1</name>
		<path>../../Instruments/UNS-1Ew/uns-1ew.xml</path>
		<offsets>
			<x-m>-0.047</x-m>
			<y-m> 0.078153</y-m>
			<z-m> 0.0</z-m>
		</offsets>
	</model>
	<!--	Radio Control Units	-->
	<model>
		<name>RCU1</name>
		<path>../../Instruments/RCU/rcu.xml</path>
		<offsets>
			<x-m> 0.092</x-m>
			<y-m> 0.078153</y-m>
			<z-m> 0.0</z-m>
		</offsets>
	</model>
	<model>
		<name>RCU2</name>
		<path>../../Instruments/RCU/rcu.xml</path>
		<offsets>
			<x-m> 0.273</x-m>
			<y-m> 0.078153</y-m>
			<z-m> 0.0</z-m>
		</offsets>
	</model>
	<!--	Audio Control Units	-->
	<model>
		<name>ACU1</name>
		<path>../../Instruments/ACU-6100/acu.xml</path>
		<offsets>
			<x-m> 0.178</x-m>
			<y-m> 0.078153</y-m>
			<z-m> 0.0</z-m>
		</offsets>
	</model>
	<model>
		<name>ACU2</name>
		<path>../../Instruments/ACU-6100/acu.xml</path>
		<offsets>
			<x-m> 0.358</x-m>
			<y-m> 0.078153</y-m>
			<z-m> 0.0</z-m>
		</offsets>
	</model>
	
	<!--	EFFECTS	-->
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>pedestal.lit</object-name>
	</effect>
	
	<!--	ANIMATIONS	-->
	<!--	Lighting	-->
	<animation>
		<type>material</type>
		<object-name>pedestal.lit</object-name>
		<emission>
			<red>1</red>
			<green>1</green>
			<blue>1</blue>
			<factor-prop>systems/electrical/lights/panel-lights[1]</factor-prop>
		</emission>
	</animation>
	<!--	Avionics Electrical Panel	-->
	<animation>
		<type>knob</type>
		<object-name>switch.avionics_master</object-name>
		<property>controls/electric/avionics</property>
		<factor>-44</factor>
		<center>
			<x-m>-0.142713</x-m>
			<z-m> 0.001236</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/electric/avionics</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.vhf1_hot</object-name>
		<property>controls/electric/vhf1-hot</property>
		<factor>-44</factor>
		<center>
			<x-m>-0.142713</x-m>
			<z-m> 0.001236</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/electric/vhf1-hot</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.fds_ap</object-name>
		<property>controls/electric/fds-ap</property>
		<factor>-44</factor>
		<center>
			<x-m>-0.142713</x-m>
			<z-m> 0.001236</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-toggle</command>
				<property>controls/electric/fds-ap</property>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>switch.stby_batt</object-name>
		<property>controls/electric/stby-batt</property>
		<factor>-22</factor>
		<center>
			<x-m>-0.142713</x-m>
			<z-m> 0.001236</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/electric/stby-batt</property>
				<factor>1</factor>
				<min>-1</min>
				<max>1</max>
			</binding>
		</action>
	</animation>
	<!--	Engine Control Panel	-->
	<!--	Power	-->
	<!--	Levers	-->
	<animation>
		<type>knob</type>
		<object-name>power.left.lever</object-name>
		<property>controls/engines/engine[0]/power-lever-pos</property>
		<offset-deg>3.9</offset-deg>
		<factor>-23.5</factor>
		<center>
			<x-m> 0.000268</x-m>
			<z-m>-0.259873</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/engines/engine[0]/throttle</property>
				<factor>0.05</factor>
				<min>0</min>
				<max>1</max>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>power.right.lever</object-name>
		<property>controls/engines/engine[1]/power-lever-pos</property>
		<offset-deg>3.9</offset-deg>
		<factor>-23.5</factor>
		<center>
			<x-m> 0.000268</x-m>
			<z-m>-0.259873</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/engines/engine[1]/throttle</property>
				<factor>0.05</factor>
				<min>0</min>
				<max>1</max>
			</binding>
		</action>
	</animation>
	<!--	Detents	-->
	<animation>
		<type>pick</type>
		<object-name>power.left.max</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/throttle</property>
				<value>1.0</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/reverser</property>
				<value>0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.right.max</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/throttle</property>
				<value>1.0</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/reverser</property>
				<value>0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.left.fi</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/throttle</property>
				<value>0.0</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/reverser</property>
				<value>0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.right.fi</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/throttle</property>
				<value>0.0</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/reverser</property>
				<value>0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.left.gi</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/throttle</property>
				<value>0.5</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/reverser</property>
				<value>1</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.right.gi</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/throttle</property>
				<value>0.5</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/reverser</property>
				<value>1</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.left.reverse</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/throttle</property>
				<value>1.0</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/reverser</property>
				<value>1</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>power.right.reverse</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/throttle</property>
				<value>1.0</value>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/reverser</property>
				<value>1</value>
			</binding>
		</action>
	</animation>
	<!--	Engine Speed	-->
	<!--	Levers	-->
	<animation>
		<type>knob</type>
		<object-name>engine_speed.left.lever</object-name>
		<property>controls/engines/engine[0]/engine-speed</property>
		<offset-deg>17</offset-deg>
		<factor>-34</factor>
		<center>
			<x-m>-0.019143</x-m>
			<z-m>-0.255728</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/engines/engine[0]/engine-speed</property>
				<factor>0.05</factor>
				<min>0</min>
				<max>1</max>
			</binding>
		</action>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>engine_speed.right.lever</object-name>
		<property>controls/engines/engine[1]/engine-speed</property>
		<offset-deg>17</offset-deg>
		<factor>-34</factor>
		<center>
			<x-m>-0.019143</x-m>
			<z-m>-0.255728</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>controls/engines/engine[1]/engine-speed</property>
				<factor>0.05</factor>
				<min>0</min>
				<max>1</max>
			</binding>
		</action>
	</animation>
	<!--	Detents	-->
	<animation>
		<type>pick</type>
		<object-name>engine_speed.left.high</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/engine-speed</property>
				<value>1.0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>engine_speed.right.high</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/engine-speed</property>
				<value>1.0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>engine_speed.left.low</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/engine-speed</property>
				<value>0.25</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>engine_speed.right.low</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/engine-speed</property>
				<value>0.25</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>engine_speed.left.feather</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[0]/engine-speed</property>
				<value>0.0</value>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>engine_speed.right.feather</object-name>
		<visible>0</visible>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>controls/engines/engine[1]/engine-speed</property>
				<value>0.0</value>
			</binding>
		</action>
	</animation>
	<!--	AP Panel	-->
	<animation>
		<type>pick</type>
		<object-name>ap.btn.hdg</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>nasal</command>
				<script>kfc250.hdg_btn();</script>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/hdg</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/hdg</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.hdg</object-name>
		<property>autopilot/buttons/hdg</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>ap.btn.fd</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/fd</property>
				<value>1</value>
			</binding>
			<binding>
				<command>property-toggle</command>
				<property>autopilot/switches/fd</property>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/fd</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.fd</object-name>
		<property>autopilot/buttons/fd</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>ap.btn.alt</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>nasal</command>
				<script>kfc250.alt_btn();</script>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/alt</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/alt</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.alt</object-name>
		<property>autopilot/buttons/alt</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>ap.btn.nav</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>nasal</command>
				<script>kfc250.nav_btn();</script>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/nav</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/nav</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.nav</object-name>
		<property>autopilot/buttons/nav</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>ap.btn.bc</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/bc</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/bc</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.bc</object-name>
		<property>autopilot/buttons/bc</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>ap.btn.appr</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/appr</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/appr</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.appr</object-name>
		<property>autopilot/buttons/appr</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>ap.btn.yd</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>autopilot/buttons/yd</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>autopilot/buttons/yd</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>ap.btn.yd</object-name>
		<property>autopilot/buttons/yd</property>
		<factor>-0.0015</factor>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>ap.switch.ap</object-name>
		<property>autopilot/switches/ap</property>
		<factor>-46.6</factor>
		<center>
			<x-m> 0.176274</x-m>
			<z-m> 0.003367</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>autopilot/switches/ap</property>
				<min>0</min>
				<max>1</max>
				<wrap>0</wrap>
			</binding>
			<binding>
				<command>property-assign</command>
				<property>autopilot/switches/yd</property>
				<property>autopilot/switches/ap</property>
			</binding>
			<binding>
				<command>property-assign</command>
				<condition>
					<property>autopilot/switches/ap</property>
				</condition>
				<property>autopilot/switches/yd</property>
				<value>1</value>
			</binding>
		</action>
	</animation>
	<!--	Flaps Panel	-->
	<animation>
		<type>knob</type>
		<object-name>flaps.lever</object-name>
		<property>controls/flight/flaps</property>
		<factor>58</factor>
		<center>
			<x-m> 0.265849</x-m>
			<z-m>-0.032496</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
		<action>
			<binding>
				<command>property-cycle</command>
				<property>controls/flight/flaps</property>
				<value> 0.0 </value>
				<value> 0.17 </value>
				<value> 0.67 </value>
				<value> 1.0 </value>
				<wrap>0</wrap>
			</binding>
		</action>
	</animation>
	
</PropertyList>
