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

<!--	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>chp.ac</path>
	
	<!--
	#######################
		Animations	
	####################### -->
	<!--	Lighting	-->
	<animation>
		<type>material</type>
		<object-name>chp.lit</object-name>
		<object-name>chp.knob.crs1.lit</object-name>
		<object-name>chp.knob.crs2.lit</object-name>
		<object-name>chp.knob.hdg.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>chp</object-name>
		<object-name>chp.knob.crs1</object-name>
		<object-name>chp.knob.crs2</object-name>
		<object-name>chp.knob.hdg</object-name>
	</animation>
	
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>chp.lit</object-name>
		<object-name>chp.knob.crs1.lit</object-name>
		<object-name>chp.knob.crs2.lit</object-name>
		<object-name>chp.knob.hdg.lit</object-name>
	</effect>

	<animation>
		<type>knob</type>
		<object-name>chp.knob.crs1</object-name>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/nav[0]/radials/selected-deg</property>
				<factor>1</factor>
				<min>0</min>
				<max>360</max>
				<wrap>1</wrap>
			</binding>
		</action>
	</animation>

	<animation>
		<type>knob</type>
		<object-name>chp.knob.crs2</object-name>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/nav[1]/radials/selected-deg</property>
				<factor>1</factor>
				<min>0</min>
				<max>360</max>
				<wrap>1</wrap>
			</binding>
		</action>
	</animation>

	<animation>
		<type>knob</type>
		<object-name>chp.knob.hdg</object-name>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>autopilot/settings/heading-bug-deg</property>
				<factor>1</factor>
				<min>0</min>
				<max>360</max>
				<wrap>1</wrap>
			</binding>
		</action>
	</animation>
	<animation>
		<type>pick</type>
		<object-name>chp.knob.hdg.lit</object-name>
		<action>
			<button>0</button>
			<binding>
				<command>property-assign</command>
				<property>autopilot/settings/heading-bug-deg</property>
				<property>orientation/heading-magnetic-deg</property>
			</binding>
		</action>
	</animation>
    
</PropertyList>
