<!-- This guage is for Posky 777-200V2 for making the Left gear shrink action   -->
<Gauge Name="PkyLeftgearheight" Version="1.0">
<copyright>(c)2007 Hiroshi Igami</copyright>

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

(A:PLANE ALT ABOVE GROUND, meter) 20 &lt; if{

    <!-- Calculate bank offset  -->
    (A:PLANE BANK DEGREES, radian) s8 pi &gt; if{
      l8 pi 2 * -  tan 5.485 *
    }
    els{
      l8  tan 5.485 *
    }
    s3

   5.419  (A:PLANE ALT ABOVE GROUND, meter) - (A:PLANE PITCH DEGREES, radian)  tan  2.984 * - l3  +  145.985 * 100 + 
   200 min 100 max
   (>L:PkyLEFTGEARHEIGHT,percent) 
}
els{
   100
   (>L:PkyLEFTGEARHEIGHT,percent) 
}
</Value>
</Select>
</Element>  
</Gauge>
<!--   For default MS compatibility code use under -->
<!--   (A:GEAR ANIMATION POSITION:0,enum) 100 +  (>L:PkyNOSEGEARHEIGHT,enum)  -->
<!--   5.21 is the maximum extended length of the gear height -->
<!--   22.895 is the length from Center to center of the Nose gear pole -->
<!--   All units are meter -->