<?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 Bea Wolf (D-ECHO)
    Started 06/2020
-->

<!--	Universal EFI-890R simulation
		References:	http://www.uasc.com/home/shop/avionics/efi-890r
				https://www.uasc.com/docs/default-source/documents/brochures/uasc_efi-890r_brochure.pdf?sfvrsn=9e13985c_4
				Dornier 228-212 POH (ref. [1], see do228-212.xml)
				-->
				
<PropertyList>

	<path>rsp.ac</path>
	
	<!--
	#######################
		Animations	
	####################### -->
	<!--	Lighting	-->
	<animation>
		<type>material</type>
		<object-name>rsp.lit</object-name>
		<object-name>rsp.knob.speed.lit</object-name>
		<object-name>rsp.btn.spd_bug.lit</object-name>
		<object-name>rsp.btn.kias_mach.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>
	<animation>
		<object-name>rsp</object-name>
		<object-name>rsp.knob.speed</object-name>
		<object-name>rsp.knob.alt_preselect</object-name>
		<object-name>rsp.btn.spd_bug</object-name>
		<object-name>rsp.btn.kias_mach</object-name>
	</animation>
	
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>rsp.lit</object-name>
		<object-name>rsp.knob.speed.lit</object-name>
		<object-name>rsp.btn.spd_bug.lit</object-name>
		<object-name>rsp.btn.kias_mach.lit</object-name>
	</effect>
	
	<animation>
		<type>knob</type>
		<object-name>rsp.knob.speed</object-name>
		<object-name>rsp.knob.speed.lit</object-name>
		<property>instrumentation/efi-890r/settings/speed</property>
		<factor>0.1</factor>
		<center>
			<y-m>-0.042478</y-m>
		</center>
		<axis>
			<x>1</x>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/efi-890r/settings/speed</property>
				<factor>-1</factor>
				<min>0</min>
				<max>50000</max>
			</binding>
		</action>
	</animation>
	
	<animation>
		<type>pick</type>
		<object-name>rsp.btn.alert_cancel</object-name>
		<object-name>rsp.btn.alert_cancel.lit</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>instrumentation/efi-890r/buttons/alert-cancel</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>instrumentation/efi-890r/buttons/alert-cancel</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>rsp.btn.alert_cancel</object-name>
		<object-name>rsp.btn.alert_cancel.lit</object-name>
		<property>instrumentation/efi-890r/buttons/alert-cancel</property>
		<factor>0.001</factor>
		<axis>
			<x>1</x>
		</axis>
	</animation>
	
	<animation>
		<type>pick</type>
		<object-name>rsp.btn.ft_m</object-name>
		<object-name>rsp.btn.ft_m.lit</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>instrumentation/efi-890r/buttons/ft-m</property>
				<value>1</value>
			</binding>
			<mod-up>
				<binding>
					<command>property-assign</command>
					<property>instrumentation/efi-890r/buttons/ft-m</property>
					<value>0</value>
				</binding>
			</mod-up>
		</action>
	</animation>
	<animation>
		<type>translate</type>
		<object-name>rsp.btn.ft_m</object-name>
		<object-name>rsp.btn.ft_m.lit</object-name>
		<property>instrumentation/efi-890r/buttons/ft-m</property>
		<factor>0.001</factor>
		<axis>
			<x>1</x>
		</axis>
	</animation>
		
	
	
	<animation>
		<type>knob</type>
		<object-name>rsp.knob.alt_preselect</object-name>
		<property>autopilot/settings/target-altitude-ft</property>
		<factor>0.1</factor>
		<center>
			<y-m>0.042478</y-m>
		</center>
		<axis>
			<x>1</x>
		</axis>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>autopilot/settings/target-altitude-ft</property>
				<factor>100</factor>
				<min>0</min>
				<max>50000</max>
			</binding>
		</action>
	</animation>
</PropertyList>
