<!-- This guage is for Posky 777 for making the Spoiler action   -->
<Gauge Name="PkySpoilers" Version="1.0">
<copyright>(c)2008 Hiroshi Igami</copyright>

<Size X="20" Y="20"/>
<Element>
<Select>
<Value> 

<!-- Left Spoiler 1 ... Ground spoiler -->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
   }
   els{ 
       0
   }
   (>L:PkyL1Spoiler,percent) 

<!-- Left Spoiler 2 ... Ground spoiler -->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
   }
   els{ 
       0
   }
   (>L:PkyL2Spoiler,percent) 

<!-- Left Spoiler 3 ... Ground spoiler + small action-->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
   }
   els{ 
      (A:SPOILERS LEFT POSITION, percent)  5 min
   }
   (>L:PkyL3Spoiler,percent) 

<!-- Left Spoiler 4 ... Flight Spoiler Max angle is 75%-->
   (A:SPOILERS LEFT POSITION, percent) 10 - 75 min
   (>L:PkyL4Spoiler,percent) 

<!-- Left Spoiler 5 ... Flight Spoiler -->
   (A:SPOILERS LEFT POSITION, percent)
   (>L:PkyL5Spoiler,percent) 

<!-- Left Spoiler 6 ... Flight Spoiler Plus Ground spoiler delay -->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
        50 -
        2 *
        100 min
   }
   els{ 
      (A:SPOILERS LEFT POSITION, percent)
   }
   (>L:PkyL6Spoiler,percent) 

<!-- Left Spoiler 7 ... Flight Spoiler -->
   (A:SPOILERS LEFT POSITION, percent)
   (>L:PkyL7Spoiler,percent) 


<!-- RIGHT Spoiler 1 ... Ground spoiler -->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
   }
   els{ 
      0 
   }
   (>L:PkyR1Spoiler,percent) 

<!-- RIGHT Spoiler 2 ... Ground spoiler -->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
   }
   els{ 
      0 
   }
   (>L:PkyR2Spoiler,percent) 

<!-- RIGHT Spoiler 3 ... Ground spoiler + small action-->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
   }
   els{ 
      (A:SPOILERS RIGHT POSITION, percent)  5 min
   }
   (>L:PkyR3Spoiler,percent) 

<!-- Right Spoiler 4 ... Flight Spoiler Max angle is 75%-->
   (A:SPOILERS RIGHT POSITION, percent) 10 - 75 min
   (>L:PkyR4Spoiler,percent) 

<!-- Right Spoiler 5 ... Flight Spoiler -->
   (A:SPOILERS RIGHT POSITION, percent)
   (>L:PkyR5Spoiler,percent) 

<!-- Right Spoiler 6 ... Flight Spoiler Plus Ground spoiler delay -->
   (A:SIM ON GROUND, bool) 1 ==  
   (A:SPOILERS HANDLE POSITION,percent) 1 &gt; &amp; if{ 
        (A:SPOILERS LEFT POSITION,percent)
        (A:SPOILERS RIGHT POSITION,percent) max 
        50 -
        2 *
        100 min
   }
   els{ 
      (A:SPOILERS RIGHT POSITION, percent)
   }
   (>L:PkyR6Spoiler,percent) 


<!-- Right Spoiler 7 ... Flight Spoiler -->
   (A:SPOILERS RIGHT POSITION, percent)
   (>L:PkyR7Spoiler,percent) 



</Value>
</Select>
</Element>  
</Gauge>
