<?xml version="1.0"?>

<PropertyList>

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

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

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

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

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

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

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

<!--

	<animation>
		<type>material</type>
		<object-name>RSP_Base</object-name>
		<object-name>RSP_Backpanel</object-name>
		<object-name>RSP_UFShield</object-name>
		<object-name>RSP_UShield</object-name>
		<object-name>RSP_UMShield</object-name>
		<object-name>LSP_DMShield</object-name>
		<object-name>LSP_DShield</object-name>

		<object-name>ACC_Switch</object-name>
		<object-name>ACC_SForeplate</object-name>
		<object-name>ACC_Message</object-name>
		<object-name>ACC_SBase</object-name>

		<object-name>GEN_Switch</object-name>
		<object-name>GEN_SForeplate</object-name>
		<object-name>GEN_Message</object-name>
		<object-name>GEN_SBase</object-name>

		<object-name>HL_Switch</object-name>
		<object-name>HL_SForeplate</object-name>
		<object-name>HL_Message</object-name>
		<object-name>HL_SBase</object-name>

		<object-name>RAD_Switch</object-name>
		<object-name>RAD_SForeplate</object-name>
		<object-name>RAD_Message</object-name>
		<object-name>RAD_SBase</object-name>

		<object-name>HOR_Switch</object-name>
		<object-name>HOR_SForeplate</object-name>
		<object-name>HOR_Message</object-name>
		<object-name>HOR_SBase</object-name>

		<object-name>TRM_Switch</object-name>
		<object-name>TRM_SForeplate</object-name>
		<object-name>TRM_Message</object-name>
		<object-name>TRM_SBase</object-name>

		<object-name>BOM_Switch</object-name>
		<object-name>BOM_SForeplate</object-name>
		<object-name>BOM_Message</object-name>
		<object-name>BOM_SBase</object-name>

		<object-name>DBK_Switch</object-name>
		<object-name>DBK_SForeplate</object-name>
		<object-name>DBK_Message</object-name>
		<object-name>DBK_SBase</object-name>

		<object-name>RAC_Switch</object-name>
		<object-name>RAC_SForeplate</object-name>
		<object-name>RAC_Message</object-name>
		<object-name>RAC_SBase</object-name>

		<object-name>RAL_Switch</object-name>
		<object-name>RAL_SForeplate</object-name>
		<object-name>RAL_Message</object-name>
		<object-name>RAL_SBase</object-name>

		<object-name>PH_Switch</object-name>
		<object-name>PH_SForeplate</object-name>
		<object-name>PH_Message</object-name>
		<object-name>PH_SBase</object-name>

		<object-name>PHMG_Switch</object-name>
		<object-name>PHMG_SForeplate</object-name>
		<object-name>PHMG_Message</object-name>
		<object-name>PHMG_SBase</object-name>

		<object-name>HS_Switch</object-name>
		<object-name>HS_SForeplate</object-name>
		<object-name>HS_Message</object-name>
		<object-name>HS_SBase</object-name>

		<object-name>MG_Switch</object-name>
		<object-name>MG_SForeplate</object-name>
		<object-name>MG_Message</object-name>
		<object-name>MG_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>rotate</type>
		<object-name>ACC_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/battery-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.102</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>ACC_SBase</object-name>
		<object-name>ACC_Switch</object-name>
		<object-name>ACC_SForeplate</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/rightpanel/battery-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/rightpanel/battery-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>GEN_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/generator-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.102</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>GEN_SBase</object-name>
		<object-name>GEN_Switch</object-name>
		<object-name>GEN_SForeplate</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/rightpanel/generator-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/rightpanel/generator-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>HL_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/headlight-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.102</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>HL_SBase</object-name>
		<object-name>HL_Switch</object-name>
		<object-name>HL_SForeplate</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/rightpanel/headlight-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/rightpanel/headlight-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>TRM_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/trimmer-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.017</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>TRM_SBase</object-name>
		<object-name>TRM_Switch</object-name>
		<object-name>TRM_SForeplate</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/rightpanel/trimmer-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/rightpanel/trimmer-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>HOR_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/horizon-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.017</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>HOR_SBase</object-name>
		<object-name>HOR_Switch</object-name>
		<object-name>HOR_SForeplate</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/rightpanel/horizon-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/rightpanel/horizon-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>RAD_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/radio-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.017</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>RAD_SBase</object-name>
		<object-name>RAD_Switch</object-name>
		<object-name>RAD_SForeplate</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/rightpanel/radio-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/rightpanel/radio-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>BOM_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/bomb-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.064</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>BOM_SBase</object-name>
		<object-name>BOM_Switch</object-name>
		<object-name>BOM_SForeplate</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/rightpanel/bomb-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/rightpanel/bomb-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>DBK_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/drop-tank-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.064</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>DBK_SBase</object-name>
		<object-name>DBK_Switch</object-name>
		<object-name>DBK_SForeplate</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/rightpanel/drop-tank-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/rightpanel/drop-tank-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>RAC_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/radiocompass-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.064</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>RAC_SBase</object-name>
		<object-name>RAC_Switch</object-name>
		<object-name>RAC_SForeplate</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/rightpanel/radiocompass-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/rightpanel/radiocompass-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>RAL_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/radioaltimeter-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.064</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>RAL_SBase</object-name>
		<object-name>RAL_Switch</object-name>
		<object-name>RAL_SForeplate</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/rightpanel/radioaltimeter-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/rightpanel/radioaltimeter-input")</script>
			</binding>
		</action>
	</animation>


	<animation>
		<type>rotate</type>
		<object-name>MG_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/machinegun-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.148</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>MG_SBase</object-name>
		<object-name>MG_Switch</object-name>
		<object-name>MG_SForeplate</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/rightpanel/machinegun-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/rightpanel/machinegun-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>HS_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/headsight-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.148</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>HS_SBase</object-name>
		<object-name>HS_Switch</object-name>
		<object-name>HS_SForeplate</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/rightpanel/headsight-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/rightpanel/headsight-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>PHMG_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/photo-machinegun-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.148</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>PHMG_SBase</object-name>
		<object-name>PHMG_Switch</object-name>
		<object-name>PHMG_SForeplate</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/rightpanel/photo-machinegun-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/rightpanel/photo-machinegun-input")</script>
			</binding>
		</action>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>PH_Switch</object-name>
		<property>fdm/jsbsim/systems/rightpanel/photo-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.148</x-m>
			<y-m>0</y-m>
			<z-m>0.0</z-m>
		</center>  
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>pick</type>
		<object-name>PH_SBase</object-name>
		<object-name>PH_Switch</object-name>
		<object-name>PH_SForeplate</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/rightpanel/photo-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/rightpanel/photo-input")</script>
			</binding>
		</action>
	</animation>

</PropertyList> 
