<Gauge Name="PNP-1" Version="1.0">
   <Image Name="PNP_Bg_2.bmp" Luminous="Yes" ImageSizes="300,300,0,0"/>
------------------------------------------------------------
   <Element>
      <Position X="0" Y="0"/>
      <MaskImage Name="PNP_Card_Outside_Mask2.bmp" ImageSizes="300,300,0,0">
         <Axis X="150" Y="157.5"/>
      </MaskImage>
      <Image Name="PNP_CO1.bmp" Luminous="Yes" ImageSizes="187,187,0,0">
         <Axis X="93.5" Y="93.5"/>
      </Image>
      <Rotate>
         <Value>(A:Plane heading degrees gyro,radians) /-/</Value>
      </Rotate>
   </Element>
-------------------------------------------------------------
<Element>
      <Position X="150" Y="157.5"/>
      <Image Name="PNP_CI1.bmp" Luminous="Yes" ImageSizes="162,162,0,0">
         <Axis X="81" Y="81"/>
      </Image>
      <Clip/>
      <Rotate>
         <Value>(A:NAV1 OBS,radians) (A:Plane heading degrees gyro,radians) -</Value>
      </Rotate>
   </Element>
-------------------------------------------------------------
<Element>
      <Position X="150" Y="157.5"/>
      <Image Name="PNP_Needle.bmp" Luminous="Yes" ImageSizes="4,72,0,0">
         <Axis X="2" Y="36"/>
      </Image>
      <Shift>
         <Value>(A:NAV1 has NAV,bool) &amp;&amp; (A:NAV1 CDI,number)</Value>
         <Scale X="0.3"><!--22/127 = 0.173--></Scale>
      <Delay PixelsPerSecond="40"/>
      </Shift>
      <Rotate>
         <Value>(A:NAV1 OBS,radians) (A:Plane heading degrees gyro,radians) -</Value>
      </Rotate>
   </Element>
--------------------------------------------------------------
<Element>
      <Image Name="PNP_gs.bmp" Luminous="Yes" ImageSizes="72,6,0,0">
         <Axis X="0" Y="3"/>
      </Image>
      <Shift>
         <Value Minimum="-200" Maximum="120">(A:Nav1 GS Flag, bool)  if{ (A:Nav1 GSI, number) } els{ -200 }</Value>
         <Nonlinearity>
            <Item Value="0" X="109" Y="157.5"/>
            <Item Value="-120" X="109" Y="116"/>
         </Nonlinearity>
         <Delay PixelsPerSecond="40"/>
      </Shift>
   </Element>
---------------------------------------------------------------
<Element>
      <Position X="150" Y="157.5"/>
      <Image Name="PNP_Pointer3.bmp" Luminous="Yes" ImageSizes="200,200,0,0">
         <Axis X="100" Y="100"/>
      </Image>
      <Rotate>
         <Value>(A:Autopilot heading lock dir,radians) (A:Plane heading degrees gyro,radians) -</Value>
      </Rotate>
   </Element>
---------------------------------------------------------------
<Element>
      <Position X="270" Y="121"/>
      <Select>
         <Value>(A:NAV1 has NAV,bool)</Value>
         <Case Value="0">
            <Image Name="PNP_g_blenker.bmp" Luminous="Yes" ImageSizes="16,78,0,0"/>
         </Case>
      </Select>
   </Element>
----------------------------
   <Element>
      <Position X="14" Y="121"/>
      <Select>
         <Value>(A:NAV1 HAS LOCALIZER,bool)</Value>
         <Case Value="0">
            <Image Name="PNP_k_blenker.bmp" Luminous="Yes" ImageSizes="16,78,0,0"/>
         </Case>
      </Select>
   </Element>
------------------------------
 <Element>
      <Image Name="PNP_sil2.bmp" Luminous="Yes" ImageSizes="300,300,0,0"/>
   </Element>
------------------------------
  <Element>
      <Position X="0" Y="0"/>
      <MaskImage Name="PNP_Mask_3Hole.bmp" ImageSizes="273,65,0,0">
         <Axis X="228" Y="30"/>
      </MaskImage>
      <Image Name="PNP_Rolling_Numbers.bmp" Luminous="Yes" ImageSizes="12,330,0,0">
         <Nonlinearity>
            <Item Value="0" X="0" Y="0"/>
            <Item Value="9" X="0" Y="270"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:NAV1 OBS, degrees) 359 + dnor 1 + s1 100 / 10 % flr l1 100 % 99 &gt; if{ l1 10 % 9 - + }</Value>
      </Shift>
   </Element>
---------------------------------
<Element>
      <Position X="0" Y="0"/>
      <MaskImage Name="PNP_Mask_3Hole.bmp" ImageSizes="273,65,0,0">
         <Axis X="242" Y="30"/>
      </MaskImage>
      <Image Name="PNP_Rolling_Numbers.bmp" Luminous="Yes" ImageSizes="12,330,0,0">
         <Nonlinearity>
            <Item Value="0" X="0" Y="0"/>
            <Item Value="9" X="0" Y="270"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:NAV1 OBS, degrees) 359 + dnor 1 + s1 10 / 10 % flr l1 10 % 9 &gt; if{ l1 10 % 9 - + }</Value>
      </Shift>
   </Element>
----------------------------------
 <Element>
      <Position X="0" Y="0"/>
      <MaskImage Name="PNP_Mask_3Hole.bmp" ImageSizes="273,65,0,0">
         <Axis X="256" Y="30"/>
      </MaskImage>
      <Image Name="PNP_Rolling_Numbers.bmp" Luminous="Yes" ImageSizes="12,330,0,0">
         <Nonlinearity>
            <Item Value="0" X="0" Y="0"/>
            <Item Value="9" X="0" Y="270"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:NAV1 OBS, degrees) 359 + dnor 1 + 10 %</Value>
      </Shift>
   </Element>
----------------------------------
<Element>
      <Position X="0" Y="0"/>
      <Select>
         <Value>(A:Avionics master switch,bool) (A:Circuit avionics on,bool) &amp;&amp;</Value>
         <Case Value="0">
            <Image Name="PNP_KC_B.bmp" Luminous="Yes" ImageSizes="191,23,0,0"/>
         </Case>
         </Select>
   </Element>
-----------------------------
<Element>
      <Position X="33" Y="35"/>
         <Text X="34" Y="18" Luminous="Yes" Length="3" Font="Arial" Color="#DCDCDC" Adjust="Right" VerticalAdjust="Center" Fixed="Yes">
          <String>%((A:NAV1 DME, nmiles) 1.852 *  0 max  s1)%!03d!</String>
          </Text>
   </Element>
----------------------------
<Element>
      <Position X="33" Y="36"/>
      <Select>
         <Value>(A:Avionics master switch,bool) (A:Circuit avionics on,bool) &amp;&amp;</Value>
         <Case Value="0">
            <Image Name="PNP_DME_BL.bmp" Luminous="Yes" ImageSizes="32,17,0,0"/>
         </Case>
         </Select>
   </Element>
-----------------------------
 <Element>
      <Image Name="PNP_UPS.bmp" ImageSizes="300,300,0,0"/>
   </Element>
------------------------------
<Mouse>
      <Help ID="HELPID_GAUGE_HSI"/>
      <Tooltip ID="TOOLTIPTEXT_HSI_HEADING_COURSE"/>
---------------------------------------------------
      <Area Left="2" Right="32" Top="250" Bottom="265">
         <Help ID="HELPID_GAUGE_HEADING_BUG_ADJUST"/>
         <Area Right="15">
            <Cursor Type="DownArrow"/>
            <Click Event="HEADING_BUG_DEC" Repeat="Yes"/>
         </Area>
         <Area Left="15">
            <Cursor Type="UpArrow"/>
            <Click Event="HEADING_BUG_INC" Repeat="Yes"/>
         </Area>
      </Area>
--------------------------------------------------
      <Area Left="225" Right="265" Top="265" Bottom="300">
         <Help ID="HELPID_GAUGE_HSI_OBS1"/>
         <Area Right="20">
            <Cursor Type="DownArrow"/>
            <Click Event="VOR1_OBI_DEC" Repeat="Yes"/>
         </Area>
         <Area Left="20">
            <Cursor Type="UpArrow"/>
            <Click Event="VOR1_OBI_INC" Repeat="Yes"/>
         </Area>
      </Area>
   </Mouse>
</Gauge>
