<?xml version="1.0"?>

<PropertyList>

	<path>MiG-15bis-Speedbrakescontrol.ac</path> 

      <effect>
            <inherits-from>Effects/model-transparent</inherits-from>
            <object-name>SBC_Glass</object-name>
      </effect>

	<animation>
		<type>range</type>
		<min-m>0</min-m>
		<max-m>30</max-m>
	</animation>

<!--

	<animation>
		<type>material</type>
		<object-name>SBC_Base</object-name>
		<object-name>SBC_Backpanel</object-name>
		<object-name>SBC_LBase</object-name>
		<object-name>SBC_Control</object-name>
		<object-name>SBC_Message</object-name>
		<object-name>SBC_Open</object-name>
		<object-name>SBC_Close</object-name>
		<object-name>SBC_SForeplate</object-name>
		<object-name>SBC_Switch</object-name>
		<object-name>SBC_SBase</object-name>
  		<emission>
			<factor-prop>systems/light/canopy-lamps-norm</factor-prop>
			<red>0.777</red>
			<green>0.700</green>
			<blue>0.700</blue>
		</emission>
		<condition>
			<equals>
				<property>systems/light/use-canopy-lamps</property>
				<value>1</value>
			</equals>
		</condition>
	</animation>

-->

	<animation>
		<type>material</type>
		<object-name>SBC_Lamp</object-name>
		<object-name>SBC_Glass</object-name>
	  	<emission>
			<factor-prop>fdm/jsbsim/systems/speedbrakescontrol/light-pos</factor-prop>
			<red>0.9</red>
			<green>0.1</green>
			<blue>0.1</blue>
		</emission>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>SBC_Switch</object-name>
		<property>fdm/jsbsim/systems/speedbrakescontrol/control-pos</property>
		<interpolation>
			<entry><ind>0.0</ind><dep>45.0</dep></entry>
			<entry><ind>1.0</ind><dep>-45.0</dep></entry>
		</interpolation>
		<center>
			<x-m>0.</x-m>
			<y-m>0.001</y-m>
			<z-m>0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>SBC_SBase</object-name>
		<object-name>SBC_Switch</object-name>
		<action>
			<button>0</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>nasal</command>
				<script>MIG15BIS.bitswap("fdm/jsbsim/systems/speedbrakescontrol/control-input")</script>
			</binding>
		</action>
		<action>
			<button>1</button>
			<repeatable>false</repeatable>
			<interval-sec>0.1</interval-sec>
			<binding>
				<command>nasal</command>
				<script>MIG15BIS.bitswap("fdm/jsbsim/systems/speedbrakescontrol/control-input")</script>
			</binding>
		</action>
	</animation>

</PropertyList> 
