<Gauge Name="PKP-1" Version="1.0">
   <Image Name="PKP_bg.bmp" Luminous="Yes" ImageSizes="276,276,0,0"/>
   <Element>
      <Position X="0" Y="0"/>
      <MaskImage Name="PKP_Mask.bmp" ImageSizes="276,276,0,0">
         <Axis X="137" Y="119"/>
      </MaskImage>
      <Image Name="PKP_card.bmp" Luminous="Yes" ImageSizes="250,730,0,0">
         <Axis X="125" Y="365"/>
      </Image>
      <Shift>
         <Value Minimum="-90" Maximum="90">(A:Avionics master switch,bool) (A:Circuit avionics on,bool) &amp;&amp; if{ (A:Attitude indicator pitch degrees,degrees) /-/ } els{ 65 }</Value>
         <Delay PixelsPerSecond="180"/>
         <Scale Y="3.0"/>
         </Shift>
      <Rotate>
         <Value>(A:Attitude indicator bank degrees,radians)</Value>
         <Delay DegreesPerSecond="90"/>
      </Rotate>
   </Element>
-------------------
<Element>
      <Position X="0" Y="0"/>
      <Image Name="PKP_Sil.bmp" Luminous="Yes" ImageSizes="276,276,0,0"/>
</Element>
-------------------
<Element>
      <Position X="137" Y="119"/>
      <Image Name="PKP_b_p.bmp" Luminous="Yes" ImageSizes="9,14,0,0">
         <Axis X="4.5" Y="-79"/>
      </Image>
      <Rotate>
         <Value Minimum="-0.7" Maximum="0.7">(A:Attitude indicator bank degrees,radians)</Value>
      </Rotate>
      <Delay DegreesPerSecond="90"/>
</Element>

-------------------
<Element>
      <Position X="137" Y="118"/>
      <Image Name="PKP_b_p2.bmp" Luminous="Yes" ImageSizes="25,25,0,0">
         <Axis X="12.5" Y="94"/>
      </Image>
      <Rotate>
         <Value Minimum="-0.7" Maximum="0.7">(A:Attitude indicator bank degrees,radians)</Value>
      </Rotate>
      <Delay DegreesPerSecond="90"/>
</Element>
-------------------
<Element>
      <Image Name="PKP_Ball.bmp" ImageSizes="11,11,0,0">
         <Axis X="5" Y="5"/>
      </Image>
      <Shift>
         <Value Minimum="-1" Maximum="1">(A:Turn coordinator ball,position)</Value>
         <Nonlinearity>
            <Item Value="-1" X="99" Y="254"/>
            <Item Value="0" X="138" Y="256"/>
            <Item Value="1" X="177" Y="254"/>
         </Nonlinearity>
         <Delay PixelsPerSecond="30"/>
      </Shift>
   </Element>
-----------------------
<Element>
            <Position X="24" Y="117"/>
            <Image Name="PKP_V_index.bmp" Luminous="Yes" ImageSizes="16,16,0,0">
               <Axis X="0" Y="8"/>
            </Image>
            <Shift>
               <Value Minimum="-45" Maximum="45">(A:Airspeed select indicated or true, knots) (A:Autopilot airspeed hold var, knots)  -</Value>
               <Scale Y="-1.0"/>
            </Shift>
         </Element>
--------------------------
<Element>
      <Image Name="PKP_gs.bmp" Luminous="Yes" ImageSizes="25,4,0,0">
         <Axis X="0" Y="2"/>
      </Image>
      <Shift>
         <Value Minimum="-120" Maximum="120">(A:Nav1 GS Flag, bool) if{ (A:Nav1 GSI, number) } els{ -220 }</Value>
         <Nonlinearity>
            <Item Value="0" X="234" Y="117"/>
            <Item Value="-120" X="234" Y="74"/>
         </Nonlinearity>
         <Delay PixelsPerSecond="60"/>
      </Shift>
</Element>
----------------
<Element>
      <Image Name="PKP_loc.bmp" Luminous="Yes" ImageSizes="24,18,0,0">
         <Axis X="12" Y="0"/>
      </Image>
            <Shift>
               <Value Minimum="-1" Maximum="1">(A:Nav1 CDI, number) 127 / </Value>
               <Nonlinearity>
                  <Item Value="-1" X="96" Y="158"/>
                  <Item Value="0" X="138" Y="158"/>
                  <Item Value="1" X="180" Y="158"/>
               <Delay PixelsPerSecond="60"/>
               </Nonlinearity>
            </Shift>
</Element>
-----------------
<Element>
      <Position X="0" Y="0"/>
      <Select>
         <Value>(A:NAV1 has NAV,bool)</Value>
         <Case Value="0">
            <Image Name="PKP_g_b_.bmp" Luminous="Yes" ImageSizes="195,60,0,0"/>
         </Case>
      </Select>
   </Element>
----------------------------
   <Element>
      <Position X="0" Y="0"/>
      <Select>
         <Value>(A:NAV1 HAS LOCALIZER,bool) (A:NAV2 HAS LOCALIZER,bool) || (&gt;G:Var1) || (G:Var1) &amp;&amp;</Value>
         <Case Value="0">
            <Image Name="PKP_k_b_.bmp" Luminous="Yes" ImageSizes="126,60,0"/>
         </Case>
      </Select>
   </Element>
------------------------------
<Element>
      <Position X="195" Y="133"/>
      <Select>
         <Value>(A:Avionics master switch,bool) (A:Circuit avionics on,bool) &amp;&amp; </Value>
         <Case Value="0">
            <Image Name="PKP_Flag_AG.bmp" Luminous="Yes" ImageSizes="30,30,0,0"/>
         </Case>
         </Select>
   </Element>
-----------------------------
<Element>
      <Position X="0" Y="0"/>
      <Image Name="PKP_UPS.bmp" ImageSizes="276,276,0,0"/>
</Element>
-------------------
</Gauge>

