<?xml version="1.0"?>
<!--Schulgleiter SG38-->
<!--2017 D-ECHO-->
<!--based on-->
<!-- Schleicher ASK 13 Glider  -->
<!-- Copyright 2010 Patrice Poly -->

<PropertyList>

 <path>sg38.ac</path>

 <offsets>
   <x-m>0.</x-m>
   <y-m>0.</y-m>
   <z-m>0.</z-m>
   <pitch-deg>0.0</pitch-deg>
 </offsets>

 
 
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>wingL</object-name>
    <object-name>wingR</object-name>
    <object-name>rear_fairing</object-name>
  </effect><!--
    
   <animation>
   <type>rotate</type>
   <object-name>front-airbrakes-handle</object-name>
   <property>surface-positions/speedbrake-pos-norm</property>
   <interpolation>
     <entry>
       <ind>1.0</ind>
       <dep>45</dep>
     </entry>
     <entry>
       <ind>0.02</ind>
       <dep>5.0</dep>
     </entry>
     <entry>
       <ind>0</ind>
       <dep>0</dep>
     </entry>
      </interpolation>
		<center>
			<x-m>0.895516</x-m>
			<y-m>-0.234871</y-m>
			<z-m>-0.058508</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>0.006534</y>
			<z>0</z>
		</axis>
 </animation>-->
  
 <!--PILOT-->
 	<animation>
		<type>select</type>
		<object-name>Head</object-name>
                <condition><not-equals>
                        <property>/sim/current-view/view-number</property>
                        <value>0</value></not-equals>
            </condition>
	</animation>
        <animation>
            <name>Pilot</name>
            <object-name>Head</object-name>
            <object-name>Body</object-name>
            <object-name>RightUpperArm</object-name>
            <object-name>RightLowerArm</object-name>
            <object-name>RightHand</object-name>
            <object-name>LeftUpperArm</object-name>
            <object-name>LeftLowerArm</object-name>
            <object-name>LeftHand</object-name>
            <object-name>RightUpperLeg</object-name>
            <object-name>RightLowerLeg</object-name>
            <object-name>RightFoot</object-name>
            <object-name>LeftUpperLeg</object-name>
            <object-name>LeftLowerLeg</object-name>
            <object-name>LeftFoot</object-name>
        </animation>
 	<animation>
		<type>select</type>
		<object-name>Pilot</object-name>
                <condition>
                    <and>
                        <or>
                            <property>/sim/model/pilots-view-enabled</property>
                            <not-equals>
                                <property>/sim/current-view/view-number</property>
                                <value>0</value>
                            </not-equals>
                        </or>
                        <greater-than>
                            <property>sim/weight/weight-lb</property>
                            <value>100</value>
                        </greater-than>
                        <property>/sim/model/pilots-enabled</property>
                </and>
            </condition>
	</animation>
        <!--Instruments: ASI, VSI, ALT-->
        <model>
            <name>asi</name>
	 <path>Aircraft/SG38/Models/Instruments/winter-asi-6221/winter-asi-6221.xml</path>
	 <offsets>
		 <x-m>-2.94813</x-m>
		 <y-m>0.0</y-m>
		 <z-m>-0.38111</z-m>
		 <pitch-deg>-23.69</pitch-deg>
	 </offsets>	 
 </model>
        <model>
            <name>vsi</name>
	 <path>Aircraft/SG38/Models/Instruments/vario-5stv5/winter-vario-5stv5.xml</path>
	 <offsets>
		 <x-m>-2.91106</x-m>
		 <y-m>0.0</y-m>
		 <z-m>-0.46588</z-m>
		 <pitch-deg>-23.69</pitch-deg>
	 </offsets>	 
 </model>
        <model>
            <name>alt</name>
	 <path>Aircraft/SG38/Models/Instruments/alti-4110/winter-4110.xml</path>
	 <offsets>
		 <x-m>-2.87177</x-m>
		 <y-m>0.0</y-m>
		 <z-m>-0.55391</z-m>
		 <pitch-deg>-23.69</pitch-deg>
	 </offsets>	 
 </model>
 	<animation>
		<type>select</type>
		<object-name>panel</object-name>
		<object-name>asi</object-name>
		<object-name>vsi</object-name>
		<object-name>alt</object-name>
                <condition>
                        <property>controls/cabin/panel</property>
            </condition>
	</animation>
        <!--Rudder-->
 	<animation>
		<type>rotate</type>
		<object-name>rudderpedals</object-name>
		<object-name>rudderpedals2</object-name>
		<property>controls/flight/rudder</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>20</factor>
		<center>
			<x-m>-2.90478</x-m>
			<y-m>0</y-m>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>
        
 	<animation>
		<type>select</type>
		<object-name>rear_fairing</object-name>
                <condition>
                        <property>controls/flight/rear-fairing</property>
            </condition>
	</animation>
        <!--
 	<animation>
		<type>select</type>
		<object-name>helipingperson</object-name>
		<object-name>arm.up</object-name>
		<object-name>arm.down</object-name>
                <condition>
                    <property>/controls/gear/assist</property>
            </condition>
	</animation>
 	<animation>
		<type>select</type>
		<object-name>arm.up</object-name>
                <condition>
                    <and><not>
                        <property>sim/hitches/winch/open</property></not>
                    <property>gear/gear[1]/wow</property></and>
            </condition>
	</animation>
 	<animation>
		<type>select</type>
		<object-name>arm.down</object-name>
                <condition>
                    <or>
                        <property>sim/hitches/winch/open</property>
                        <not><property>gear/gear[1]/wow</property></not></or>
            </condition>
	</animation>-->
	
 	<animation>
		<type>rotate</type>
		<object-name>aileronL</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>20</factor>
		<center>
			<x-m>-0.83688</x-m>
			<y-m>0</y-m>
			<z-m>0.35951</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>
 	<animation>
		<type>rotate</type>
		<object-name>aileronR</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>20</factor>
		<center>
			<x-m>-0.83688</x-m>
			<y-m>0</y-m>
			<z-m>0.35951</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>
	
	<animation>
		<type>rotate</type>
		<object-name>elevator</object-name>
		<property>surface-positions/elevator-pos-norm</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>-20</factor>
		<center>
			<x-m>2.31942</x-m>
			<y-m>0</y-m>
			<z-m>0.22949</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
	</animation>
	
	<animation>
		<type>rotate</type>
		<object-name>rudder</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>20</factor>
    <axis>
      <x1-m> 2.39326 </x1-m>
      <y1-m> 0.000 </y1-m>
      <z1-m> -0.3 </z1-m>
      <x2-m> 2.42998 </x2-m>
      <y2-m> 0.000 </y2-m>
      <z2-m> 0.93275 </z2-m>
    </axis>
	</animation>
 
  
 	<animation>
		<type>rotate</type>
		<object-name>yoke1</object-name>
		<object-name>yoke2</object-name>
		<property>controls/flight/elevator</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>-20</factor>
		<center>
			<x-m>-2.43678</x-m>
			<y-m>0.0</y-m>
			<z-m>-0.6988</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>
	
 	<animation>
		<type>rotate</type>
		<object-name>yoke1</object-name>
		<object-name>yoke2</object-name>
		<object-name>yoke3</object-name>
                <property>controls/flight/aileron</property>
		<min-deg>-20</min-deg>
		<max-deg>20</max-deg>
		<factor>-20</factor>
		<center>
			<y-m>0.0</y-m>
			<z-m>-0.6988</z-m>
		</center>
		<axis>
			<x>1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation><!--

 	 <animation>
		<type>rotate</type>
		<object-name>front-trim-handl</object-name>
		<property>controls/flight/spoilers</property>
		<min-deg>-50</min-deg>
		<max-deg>50</max-deg>
		<factor>-100</factor>
		<center>
 			<x-m>0.947587</x-m>
			<y-m>0.257991</y-m>
			<z-m>0.122396</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>0.003923</y>
			<z>0</z>
		</axis>
	</animation>-->
	
	<animation>
		<type>translate</type>
		<object-name>spoilers</object-name>
		<property>surface-positions/speedbrake-pos-norm</property>
		<factor>.1</factor>
		<axis>
			<x>0</x>
			<y>0.0</y>
			<z>1</z>
		</axis>
	</animation>
	
	
 </PropertyList>
