• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Vertical speed window in m/sec

Messages
10
Country
finland
Hello,

I am creating a custom made autopilot using XML gauges to a Russian made aircraft. I have managed to make an autopilot VS selection window that works perfectly in ft/min. Now I would need to convert this selection window to show values in meters per second as in this aircraft gauges measure the VS in such manner. The conversion formula from ft/min to m/sec would be: (ft/min) x 0.3048 / 60. How to write this in the XML gauge below? I am a beginner with XML and I cannot find examples in tutorials how to achieve this. Could someone please fix my code below to achieve what I need? I am using FS2004.

Code:
<Gauge Name="VS_Win" Version="1.0">
   <Image Name="Fab_AP_Rolling_Numbers_Mask_5Hole.bmp" ImageSizes="120,38"/>

   <Element>
   <Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>   
   <MaskImage Name="Fab_AP_Rolling_Numbers_Mask_5Hole.bmp" Bright="Yes" ImageSizes="120,38">
         <Axis X="1" Y="7"/>
      </MaskImage>
      <Image Name="Fab_AP_Rolling_Numbers_Signs.bmp" Bright="Yes" ImageSizes="18,58">
         <Nonlinearity>
            <Item Value="-1" X="0" Y="1"/>
            <Item Value="1" X="0" Y="33"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:Autopilot vertical hold var, ft/min) -1 max 1 min</Value>
      </Shift>
   </Element>

   <Element>
   <Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>   
   <MaskImage Name="Fab_AP_Rolling_Numbers_Mask_5Hole.bmp" Bright="Yes" ImageSizes="120,38">
         <Axis X="25" Y="7"/>
      </MaskImage>
      <Image Name="Fab_AP_Rolling_Numbers.bmp" Bright="Yes" ImageSizes="33,343">
         <Nonlinearity>
            <Item Value="0" X="6" Y="5"/>
            <Item Value="9" X="6" Y="284"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:Autopilot vertical hold var, ft/min) abs s1 1000 / 10 % flr l1 1000 % 999 &gt; if{ l1 10 % 9 - + }</Value>
      </Shift>
   </Element>

   <Element>
   <Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>   
   <MaskImage Name="Fab_AP_Rolling_Numbers_Mask_5Hole.bmp" Bright="Yes" ImageSizes="120,38">
         <Axis X="50" Y="7"/>
      </MaskImage>
      <Image Name="Fab_AP_Rolling_Numbers.bmp" Bright="Yes" ImageSizes="33,343">
         <Nonlinearity>
            <Item Value="0" X="6" Y="5"/>
            <Item Value="9" X="6" Y="284"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:Autopilot vertical hold var, ft/min) abs s1 100 / 10 % flr l1 100 % 99 &gt; if{ l1 10 % 9 - + }</Value>
      </Shift>
   </Element>

   <Element>
   <Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>   
   <MaskImage Name="Fab_AP_Rolling_Numbers_Mask_5Hole.bmp" Bright="Yes" ImageSizes="120,38">
         <Axis X="75" Y="7"/>
      </MaskImage>
      <Image Name="Fab_AP_Rolling_Numbers.bmp" Bright="Yes" ImageSizes="33,343">
         <Nonlinearity>
            <Item Value="0" X="6" Y="5"/>
            <Item Value="9" X="6" Y="284"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:Autopilot vertical hold var, ft/min) abs s1 10 / 10 % flr l1 10 % 9 &gt; if{ l1 10 % 9 - + }</Value>
      </Shift>
   </Element>

   <Element>
   <Visible>(A:ELECTRICAL AVIONICS BUS VOLTAGE,bool)</Visible>   
   <MaskImage Name="Fab_AP_Rolling_Numbers_Mask_5Hole.bmp" Bright="Yes" ImageSizes="120,38">
         <Axis X="100" Y="7"/>
      </MaskImage>
      <Image Name="Fab_AP_Rolling_Numbers.bmp" Bright="Yes" ImageSizes="33,343">
         <Nonlinearity>
            <Item Value="0" X="6" Y="5"/>
            <Item Value="9" X="6" Y="284"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value>(A:Autopilot vertical hold var, ft/min) abs 10 %</Value>
      </Shift>
   </Element>

<Mouse>
 <Help ID="HELPID_AUTOPILOT_VSI_INDICATOR"/>
      <Tooltip ID="TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_FTMIN" MetricID="TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_MS"/>
<Area Left="0" Top="0" Width="60" Height="38">
         <Cursor Type="DownArrow"/>
        <Click Event="AP_VS_VAR_DEC" Repeat="Yes"/>
      </Area>
<Area Left="61" Top="0" Width="60" Height="38">
         <Cursor Type="UpArrow"/>
        <Click Event="AP_VS_VAR_INC" Repeat="Yes"/>
      </Area>
</Mouse>

</Gauge>
 
The simplest way is to change the units of the A:Variable from ft/min to meters per second

(A:Autopilot vertical hold var, ft/min) to (A:Autopilot vertical hold var, meters per second)

Bob
 
Back
Top