<Gauge Name="Attitude Indicator right" Version="1.0">
   <Image Name="HSI_gauge.bmp"  Luminous="Yes" />
   <Element>
      <Position X="0" Y="3"/>
      <MaskImage Name="ATT_card_mask.bmp">
         <Axis X="156" Y="156"/>
      </MaskImage>
      <Image Name="ATT_card_ins.bmp" Luminous="Yes" >
         <Axis X="156" Y="156"/>
      </Image>
      <Shift>
         <Value Minimum="-25" Maximum="25">(A:Electrical master battery,bool) (L:Starter Generator,bool) &amp;&amp; (L:35V, enum) 2 == &amp;&amp; (L:Electrical battery,bool) (L:35V, enum) 2 == &amp;&amp; || (A:Electrical genalt1 bus amps, percent) 50 &gt; (L:35V, enum) 1 == &amp;&amp; || if{ (L:Att switch,bool) if{ (A:Attitude indicator pitch degrees,degrees) /-/ 5 * } }</Value>
         <Scale Y="1.25"/>
      </Shift>
      <Failures>
         <GAUGE_ATTITUDE Action="Freeze"/>
      </Failures>
   </Element>
   <Element>
      <Position X="27" Y="250"/>
      <Image Name="knob02.bmp"  Luminous="Yes" >
         <Axis X="17" Y="17"/>
      </Image>
      <Rotate>
         <Value>(A:Attitude bars position, position) pi * </Value>
      </Rotate>
   </Element>
   <Mouse>
      <Help ID="HELPID_GAUGE_ATTITUDE_INDICATOR"/>
      <Area Left="27" Right="101" Top="245" Bottom="320">
         <Area Right="23">
            <Cursor Type="DownArrow"/>
            <Click Event="ATTITUDE_BARS_POSITION_DOWN" Repeat="Yes"/>
         </Area>
         <Area Left="23">
            <Cursor Type="UpArrow"/>
            <Click Event="ATTITUDE_BARS_POSITION_UP" Repeat="Yes"/>
         </Area>
      </Area>
      <Area Top="55" Bottom="122" Left="286" Right="316">
         <Cursor Type="Hand"/>
         <Click Event="ATTITUDE_CAGE_BUTTON"/>
      </Area>
   </Mouse>
   <Element>
      <Image Name="Turn_Indicator_Ball_Icon.bmp" Luminous="Yes" >
         <Axis X="7" Y="9"/>
      </Image>
      <Shift>
         <Value>(A:Electrical master battery,bool) (L:Starter Generator,bool) &amp;&amp; (L:35V, enum) 2 == &amp;&amp; (L:Electrical battery,bool) (L:35V, enum) 2 == &amp;&amp; || (A:Electrical genalt1 bus amps, percent) 50 &gt; (L:35V, enum) 1 == &amp;&amp; || if{ (L:Att switch,bool) if{ (A:Turn coordinator ball,position) } }</Value>
         <Nonlinearity>
            <Item Value="-1" X="128" Y="272"/>
            <Item Value="0" X="154" Y="276"/>
            <Item Value="1" X="181" Y="272"/>
         </Nonlinearity>
      </Shift>
      <Failures>
         <GAUGE_ATTITUDE Action="Freeze"/>
      </Failures>
   </Element>
   <Element>
      <Position X="155" Y="160"/>
      <Image Name="needle_ATT.bmp" Luminous="Yes"  PointsTo="East">
         <Axis X="100" Y="4"/>
      </Image>
      <Shift>
         <Value>(A:Attitude bars position,position)</Value>
         <Scale Y="20"/>
      </Shift>
      <Rotate>
         <Value>(A:Electrical master battery,bool) (L:Starter Generator,bool) &amp;&amp; (L:35V, enum) 2 == &amp;&amp; (L:Electrical battery,bool) (L:35V, enum) 2 == &amp;&amp; || (A:Electrical genalt1 bus amps, percent) 50 &gt; (L:35V, enum) 1 == &amp;&amp; || if{ (L:Att switch,bool) if{ (A:Attitude indicator bank degrees,radians) 1.2 * /-/ } }</Value>
      </Rotate>
      <Failures>
         <GAUGE_ATTITUDE Action="Freeze"/>
      </Failures>
   </Element>
   <Element>
      <Position X="265" Y="30"/>
      <Select>
         <Value>(A:Attitude cage,bool)</Value>
         <Case Value="0">
            <Image Name="knob01.bmp" Luminous="Yes" />
         </Case>
         <Case Value="1">
            <Image Name="knob03.bmp" Luminous="Yes" />
         </Case>
      </Select>
   </Element>
   <Element>
      <Select>
         <Value>(L:Avionics master switch,bool) ! (L:Att switch,bool) ! || (A:Attitude cage,bool) ||</Value>
         <Case Value="0">
            <Image Name="gps_mask.bmp"/>
         </Case>
         <Case Value="1">
            <Image Name="flag.bmp"/>
         </Case>
      </Select>
      <Position X="66" Y="87"/>
   </Element>
</Gauge>
