<?xml version="1.0" encoding="UTF-8"?>
<!--	This simulates the electrical attitude indicator RCA 15EK-1
	References:	https://www.kellymfg.com/directional_indicators.html
			https://www.kellymfg.com/images/RC%20ALLEN%20Catalog.pdf
			-->
<PropertyList>
	
	<path>dg.ac</path>
	
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>dg.glass</object-name>
		<object-name>dg.heading</object-name>
	</effect>
	
	<animation>
		<type>material</type>
		<object-name>dg</object-name>
		<object-name>dg.glass</object-name>
		<object-name>dg.heading</object-name>
		<object-name>dg.flag</object-name>
		<emission>
			<red>   0.07 </red>
			<green> 0.04 </green>
			<blue>  0.04 </blue>
			<factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
		</emission>
	</animation>
	<animation>
		<type>knob</type>
		<object-name>dg.knob</object-name>
		<property>instrumentation/heading-indicator-dg/offset-deg</property>
		<factor>0.005</factor>
		<axis>
			<x> 1 </x>
			<y> 0 </y>
			<z> 0 </z>
		</axis>
		<center>
			<y-m>-0.031052</y-m>
			<z-m>-0.032148</z-m>
		</center>
		<action>
			<binding>
				<command>property-adjust</command>
				<property>instrumentation/heading-indicator-dg/offset-deg</property>
				<min>-180</min>
				<max>180</max>
				<factor>1</factor>
				<wrap>1</wrap>
			</binding>
		</action>
	</animation>
	
	<animation>
		<type>rotate</type>
		<object-name>dg.heading</object-name>
		<property>instrumentation/heading-indicator-dg/indicated-heading-deg</property>
		<factor>-1</factor>
		<axis>
			<x> -1 </x>
			<y>  0 </y>
			<z>  0 </z>
		</axis>
	</animation>
	
	<animation>
		<type>rotate</type>
		<object-name>dg.flag</object-name>
		<property>fdm/jsbsim/systems/indicators/dg-off-flag</property>
		<factor>14.9</factor>
		<center>
			<y-m>0.025977</y-m>
			<z-m>0.028662</z-m>
		</center>
		<axis>
			<x>  1 </x>
			<y>  0 </y>
			<z>  0 </z>
		</axis>
	</animation>
	
</PropertyList>


