<Gauge Name="Airspeed" Version="1.0">
<Image Name="Airspeed_Back.bmp" Luminous="Yes" ImageSizes="256,256" />

    <Element>
      <Select>
         <Value>(A:Light panel,bool)</Value>
         <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
         </Failures>
         <Case Value="0">
           <Image Name="AIRSPEED_BACK.bmp" ImageSizes="100,100"/>
         </Case>
         <Case Value="1">
           <Image Name="AIRSPEED_BACK_B.bmp" ImageSizes="100,100" Luminous="1" Bright="YES"/>
         </Case>
      </Select>
    </Element>

<Element>
	<Select>
	<Value>(L:AS_Init,bool) 0 == if{ 170 (&gt;L:IAS Set Value, percent) 1 (&gt;L:AS_INIT,bool) }</Value>
	</Select>
</Element>

<Element>
	<Select>
	<Value>(A:Airspeed mach, machs) 100 * s1</Value>
	</Select>
</Element>

<Element>
	<Position X="0" Y="0"/>
	<MaskImage Name="Airspeed_Mach_Mask.bmp" ImageSizes="256,256">
	<Axis X="112" Y="38"/>
	</MaskImage>
	<Image Name="Airspeed_Machstrip10.bmp" Luminous="Yes" ImageSizes="19,308">
	<Nonlinearity>
	<Item Value="0" X="0" Y="0"/>
	<Item Value="10" X="0" Y="280"/>
	</Nonlinearity>
	</Image>
	<Shift>
	<Value>l1 100000 + 100 % 10 / flr</Value>
	<Failures>
	<SYSTEM_PITOT_STATIC Action="0"/>
	<GAUGE_AIRSPEED Action="Freeze"/>
	</Failures>
      	</Shift>
</Element>

<Element>
	<Position X="0" Y="0"/>
	<MaskImage Name="Airspeed_Mach_Mask.bmp" ImageSizes="256,256">
	<Axis X="133" Y="38"/>
	</MaskImage>
	<Image Name="Airspeed_Machstrip01.bmp" Luminous="Yes" ImageSizes="19,308">
	<Nonlinearity>
	<Item Value="0" X="0" Y="0"/>
	<Item Value="10" X="0" Y="280"/>
	</Nonlinearity>
	</Image>
	<Shift>
	<Value>l1 10 %</Value>
	<Failures>
	<SYSTEM_PITOT_STATIC Action="0"/>
	<GAUGE_AIRSPEED Action="Freeze"/>
	</Failures>
      	</Shift>
</Element>

<Element>
	<Position X="111" Y="38"/>
	<Visible>(A:CIRCUIT AVIONICS ON, bool) 0 == (A:CIRCUIT GENERAL PANEL ON, bool) 0 == || </Visible>
	<Image Name="Airspeed_Off_Flag.bmp" Luminous="Yes" ImageSizes="42,28">
	</Image>
</Element>

<Element>
	<Position X="128" Y="128"/>
	<Image Name="Airspeed_IAS_Needle.bmp" PointsTo="East" Luminous="Yes" ImageSizes="124,22" >
	<Axis X="1" Y="11" />
	</Image>
	<Rotate>
	<Value Minimum="0" Maximum="370">(L:IAS Set Value, percent)</Value>
	<Nonlinearity>
	<Item Value="0" X="191" Y="19"/>
	<Item Value="60" X="209" Y="32"/>
	<Item Value="100" X="252" Y="149"/>
	<Item Value="160" X="105" Y="251"/>
	<Item Value="200" X="32" Y="208"/>
	<Item Value="250" X="2" Y="128"/>
	<Item Value="300" X="32" Y="46"/>
	<Item Value="350" X="66" Y="19"/>
	<Item Value="370" X="80" Y="12"/>
	</Nonlinearity>
	<Delay DegreesPerSecond="90"/>
	</Rotate>
</Element>

<Element>
	<Position X="128" Y="128"/>
	<Image Name="Airspeed_Barberpole_Needle.bmp" PointsTo="East" Luminous="Yes" ImageSizes="138,21" >
	<Axis X="31" Y="10.5" />
	</Image>
	<Rotate>
	<Value Minimum="0" Maximum="370">(A:Airspeed Barber Pole, knots)</Value>
	<Failures>
	<SYSTEM_PITOT_STATIC Action="0"/>
	<GAUGE_AIRSPEED Action="Freeze"/>
	</Failures>
	<Nonlinearity>
	<Item Value="0" X="191" Y="19"/>
	<Item Value="60" X="209" Y="32"/>
	<Item Value="100" X="252" Y="149"/>
	<Item Value="160" X="105" Y="251"/>
	<Item Value="200" X="32" Y="208"/>
	<Item Value="250" X="2" Y="128"/>
	<Item Value="300" X="32" Y="46"/>
	<Item Value="350" X="66" Y="19"/>
	<Item Value="370" X="80" Y="12"/>
	</Nonlinearity>
	<Delay DegreesPerSecond="25"/>
	</Rotate>
</Element>

<Element>
	<Position X="128" Y="128"/>
	<Image Name="Airspeed_Needle.bmp" PointsTo="East" Luminous="Yes" ImageSizes="152,21" >
	<Axis X="31" Y="10.5" />
	</Image>
	<Rotate>
	<Value Minimum="0" Maximum="370">(A:Airspeed select indicated or true,knots)</Value>
	<Failures>
	<SYSTEM_PITOT_STATIC Action="0"/>
	<GAUGE_AIRSPEED Action="Freeze"/>
	</Failures>
	<Nonlinearity>
	<Item Value="0" X="191" Y="19"/>
	<Item Value="60" X="209" Y="32"/>
	<Item Value="100" X="252" Y="149"/>
	<Item Value="160" X="105" Y="251"/>
	<Item Value="200" X="32" Y="208"/>
	<Item Value="250" X="2" Y="128"/>
	<Item Value="300" X="32" Y="46"/>
	<Item Value="350" X="66" Y="19"/>
	<Item Value="370" X="80" Y="12"/>
	</Nonlinearity>
	<Delay DegreesPerSecond="25"/>
	</Rotate>
</Element>

<Element>
	<Position X="91" Y="142"/>
	<Visible>(G:Var2)</Visible>
	<Text X="84" Y="38" Bright="Yes" Length="3" Font="Arial" Color="Bright_Orange" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">
	<String>%((A:Airspeed select indicated or true,knots) 999 min)%!03d!%</String>
	</Text>
</Element>

<Element>
  <Position X="10" Y="210"/>
  <Image Name="ASI_Knob.bmp" Luminous="YES" ImageSizes="40,40">
  </Image>
</Element>

<Mouse>
	<Help ID="HELPID_GAUGE_AIRSPEED"/>
	<Tooltip ID="TOOLTIPTEXT_AIRSPEED_KNOTS"/>
	<Area Left="83" Right="174" Top="93" Bottom="169">
	<Cursor Type="Hand"/>
	<Click>(G:Var2) ! (&gt;G:Var2)</Click>
	</Area>
	<Area Left="0" Right="23" Top="228" Bottom="254">
	<Cursor Type="UpArrow"/>
	<Click Repeat="Yes">(L:IAS Set Value, percent) 0 &gt; (L:IAS Set Value, percent) 370 &lt; &amp;&amp; if{ (L:IAS Set Value, percent) 1 + (&gt;L:IAS Set Value, percent) }</Click>
	</Area>
	<Area Left="23" Right="46" Top="228" Bottom="254">
	<Cursor Type="DownArrow"/>
	<Click Repeat="Yes">(L:IAS Set Value, percent) 0 &gt; (L:IAS Set Value, percent) 370 &lt; &amp;&amp; if{ (L:IAS Set Value, percent) 1 - (&gt;L:IAS Set Value, percent) }</Click>
	</Area>
</Mouse>
</Gauge>