<Gauge Name="AGK-47" Version="1.0">
   <Image Name="agk_back.bmp" Luminous="Yes" ImageSizes="340,332,0,0"/>
   <Element>
      <Select>
         <Value>(L:goriz9,number) 0 == if{ -37 (>L:goriz3,number) 13 (>L:goriz4,number) 1 (>L:goriz9,number) }</Value>
      </Select>
   </Element>
   <Element>
      <Position X="0" Y="0"/>
      <MaskImage Name="agk_mask.bmp" ImageSizes="330,320,0,0">
         <Axis X="166" Y="166"/>
      </MaskImage>
      <Position X="0" Y="0"/>
      <Image Name="agk_scale.bmp" Luminous="Yes" ImageSizes="138,306,0,0">
         <Axis X="69" Y="153"/>
      </Image>
      <Shift>
         <Value Minimum="-40" Maximum="40">(L:AGKon, bool) if{ (A:Attitude indicator pitch degrees,degrees) (L:goriz3,number) - } els{ 27 }</Value>
         <Scale Y="2.4"/>
         <Delay PixelsPerSecond="240"/>
      </Shift>
   </Element>
   <Element>
      <MaskImage Name="Agk_Mask.bmp" ImageSizes="330,320,0,0">
         <Axis X="166" Y="166"/>
      </MaskImage>
      <Image Name="agk_bank.bmp" Luminous="Yes" ImageSizes="137,27,0,0">
         <Axis X="68" Y="16"/>
      </Image>
      <Rotate>
         <Value>(L:AGKon, bool) if{ (A:Attitude indicator bank degrees,radians) (L:goriz4,number) - /-/ } els{ 13 }</Value>
         <Delay DegreesPerSecond="240"/>
      </Rotate>
      <Shift>
         <Value Minimum="-40" Maximum="40">(L:AGKon, bool) if{ (A:Attitude indicator pitch degrees,degrees) (L:goriz3,number) - } els{ 27 }</Value>
         <Scale Y="2.4"/>
         <Delay PixelsPerSecond="240"/>
      </Shift>
   </Element>
   <Element>
      <Position X="166" Y="2"/>
      <Image Name="agk_turn.bmp" Luminous="Yes" ImageSizes="16,248,0,0">
         <Axis X="8" Y="0"/>
      </Image>
      <Rotate>
         <Value Minimum="-1" Maximum="1">(L:AGKon, bool) if{ (A:Delta heading rate,rpm) } els{ 0 }</Value>
         <Nonlinearity>
            <Item Value="1" Degrees="-10"/>
            <Item Value="0" Degrees="0"/>
            <Item Value="-1" Degrees="10"/>
         </Nonlinearity>
         <Failures>
            <GAUGE_TURN_COORDINATOR Action="Freeze"/>
         </Failures>
      </Rotate>
   </Element>
   <Element>
      <Position X="125" Y="51"/>
      <Image Name="agk_blank.bmp" ImageSizes="83,25,0,0"/>
      <Shift>
         <Value>(L:goriz2,number)</Value>
         <Nonlinearity>
            <Item Value="0" X="125" Y="31"/>
            <Item Value="1" X="125" Y="51"/>
         </Nonlinearity>
         <Delay PixelsPerSecond="120"/>
      </Shift>
   </Element>
   <Element>
      <Image Name="agk_ball.bmp" ImageSizes="21,21,0,0">
         <Axis X="11" Y="11"/>
      </Image>
      <Shift>
         <Value Minimum="-1" Maximum="1"> (A:Turn coordinator ball,position) </Value>
         <Nonlinearity>
            <Item Value="-1" X="113" Y="260"/>
            <Item Value="-0.5" X="139" Y="262"/>
            <Item Value="0" X="166" Y="266"/>
            <Item Value="0.5" X="195" Y="262"/>
            <Item Value="1" X="221" Y="260"/>
         </Nonlinearity>
         <Delay PixelsPerSecond="70"/>
      </Shift>
   </Element>
   <Element>
      <Position X="0" Y="0"/>
      <Image Name="agk_upper.bmp" Luminous="Yes" ImageSizes="340,332,0,0"/>
   </Element>
   <Element>
      <Position X="88" Y="162"/>
      <Image Name="agk_line.bmp" Luminous="Yes" ImageSizes="157,8,0,0"/>
      <Shift>
         <Value>(L:goriz1,number)</Value>
         <Scale Y="2.4"/>
      </Shift>
   </Element>
   <Element>
      <Select>
         <Value>(L:goriz2,number) if{ (A:Attitude indicator pitch degrees,degrees) 11 + (>L:goriz3,number) (A:Attitude indicator bank degrees,radians) (>L:goriz4,number) }</Value>
      </Select>
   </Element>
   <Mouse>
      <Area Left="14" Right="32" Top="210" Bottom="244">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">(L:goriz1,number) -10 &gt; if{ (L:goriz1,number) -- (>L:goriz1,number) }</Click>
         </Area>
      <Area Left="32" Right="50" Top="210" Bottom="244">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:goriz1,number) 10 &lt; if{ (L:goriz1,number) ++ (>L:goriz1,number) }</Click>
         </Area>
      <Area Left="300" Top="146" Bottom="186">
            <Cursor Type="Hand"/>
            <Click>(L:goriz2,number) ! (>L:goriz2,number)</Click>
         </Area>
   </Mouse>
</Gauge>
