1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PalmAP

Discussion in 'Showroom' started by hinch, 3/2/08.

  1. hinch

    hinch

    Joined:
    22/2/07
    Messages:
    34
    Country:
    unitedkingdom
    [​IMG]

    'A little pop-up palm autopilot to match your palm EFIS or palm GPS to control unruly aircraft or take cover while you’re on the toilet =)'

    An experiment with text strings but also pretty handy!

    http://www.fs2004.co.uk/

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <Gauge Name="PalmAP" Version="1.0" Author="Matt Hinchliffe">
    <Image Name="mainPDA.bmp"/>
    
     <Element>
     <Visible>(A:Circuit general panel on,bool) (A:Electrical master battery,bool) &amp;</Visible>
    
      <!-- AP Screen -->
      <Element>
      <Position X="0" Y="0"/>
       <Image Name="mainSCREEN.bmp" Bright="Yes" />
      </Element>
    		 
      <!-- AP Master -->
      <Element>
      <Position X="79" Y="201"/>
    
      <Select>
       <Value>(A:Autopilot master,bool)</Value>
       <Case Value="0">
       </Case>
       <Case Value="1">
        <Image Name="apON.bmp" Bright="Yes"/>
       </Case>
      </Select>
      </Element>
    		 
      <!-- LVL Button -->
      <Element>
      <Position X="128" Y="201"/>
    
      <Select>
       <Value>(A:Autopilot wing leveler, bool)</Value>
       <Case Value="0">
       </Case>
       <Case Value="1">
        <Image Name="lvlON.bmp" Bright="Yes"/>
       </Case>
      </Select>
      </Element>		 
    		 
      <!-- VS Button -->
      <Element>
      <Position X="179" Y="201"/>
    
      <Select>
       <Value>(A:Autopilot altitude lock, bool)</Value>
       <Case Value="0">
       </Case>
       <Case Value="1">
        <Image Name="vsON.bmp" Bright="Yes"/>
       </Case>
      </Select>
      </Element>
    
    
      <!-- VS Display -->
      <Element>
      <Position X="86" Y="88"/>
    
       <FormattedText X="110" Y="32" FontSize="28" Length="8" Font="Arial" Color="#61665D" FontWeight="200" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No" Bright="Yes" BackgroundColor="#C3D6B2">
        <String>%((A:Autopilot vertical hold var,ft/min) d 0 &lt; if{ '-' } els{ '+' } )%!s!%( abs )%!04.0f</String>
       </FormattedText>
      </Element>
    		 
    		 
      <!-- GS Display -->
      <Element>
      <Position X="144" Y="139"/>
    
       <FormattedText X="75" Y="22" FontSize="21" Length="7" Font="Arial" Color="#61665D" FontWeight="400" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No" Bright="Yes" BackgroundColor="#C3D6B2">
        <Font FontSize="14"/>
        <String>%((A:GPS GROUND SPEED, knots))%!d!%\{fnt1}% KTS\{fnt}</String>
       </FormattedText>
      </Element>
    		 
      <!-- HDG Display -->
      <Element>
      <Position X="144" Y="167"/>
    
       <FormattedText X="75" Y="22" FontSize="21" Length="5" Font="Arial" Color="#61665D" FontWeight="400" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No" Bright="Yes" BackgroundColor="#C3D6B2">
        <String>%(360 (A:PLANE HEADING DEGREES MAGNETIC, degrees) dnor near d 0 == ?)%!03d!°</String>
       </FormattedText>
      </Element>
    	 
     </Element>
    
     <!-- *** Mouse Controls *** -->
    
     <Mouse>
    		  
      <!-- Master -->
      <Area Left="79" Top="201" Width="47" Height="32">
       <Tooltip ID="TOOLTIPTEXT_AUTOPILOT_MASTER"/>
       <Cursor Type="Hand"/>
       <Click Kind="LeftSingle">(>K:AP_MASTER)</Click>
      </Area>
    		  
      <!-- Wing level -->
      <Area Left="128" Top="201" Width="47" Height="32">
       <Tooltip ID="TOOLTIPTEXT_AUTOPILOT_WING_LEVELER"/>
       <Cursor Type="Hand"/>
       <Click Kind="LeftSingle">(>K:AP_WING_LEVELER)</Click>
      </Area>
    		  
      <!-- VS-->
      <Area Left="179" Top="201" Width="47" Height="32">
       <Tooltip ID="TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_FTMIN"/>
       <Cursor Type="Hand"/>
       <Click Kind="LeftSingle">(>K:AP_PANEL_ALTITUDE_HOLD)</Click>
      </Area>
    		  
      <!-- VS Up -->
      <Area Left="200" Top="75" Width="22" Height="22">
       <Tooltip>Up</Tooltip>
       <Cursor Type="UpArrow"/>
       <Click Repeat="Yes">(>K:AP_VS_VAR_INC)</Click>
      </Area>
    		 
      <!-- VS Dn -->
      <Area Left="200" Top="102" Width="22" Height="22">
       <Tooltip>Down</Tooltip>
       <Cursor Type="DownArrow"/>
       <Click Repeat="Yes">(>K:AP_VS_VAR_DEC)</Click>
      </Area>
    
     </Mouse>
    </Gauge>
    
    Last edited: 3/2/08

Share This Page