• 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.

FSXA VSI Gauge

Messages
35
Country
us-northcarolina
I want to make a vsi gauge that is in meters with a range of +/- 10 meters/sec that has frames of animation

So I make a new animation entry:

<Animation name="needle_vsi_10ms" guid="0311f59d-a350-4504-a01b-b7603b87f5a8" type="Sim" typeParam="AutoPlay" typeParam2="needle_vsi_10ms" length="395"/>

Then I make a new part:

<PartInfo>
<Name>needle_vsi_10ms</Name>
<AnimLength>395</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>VERTICAL SPEED</Variable>
<Units>knots</Units>
<Scale>10</Scale>
<MinValue>0</MinValue>
<MaxValue>395</MaxValue>
</Sim>
</Parameter>
</Animation>
<MouseRect>
<TooltipID>TOOLTIPTEXT_VSI_METERS_PER_SEC</TooltipID>
</MouseRect>
</PartInfo>

length is 395 since 1 m/s = 196.85039 ft/m and with a scale of 10 I need 196 frames for -10 to 0 and from 0 to +10 another 196. The scale of 10 means that at 10 m/s = 1968.5039 ft/min means for each frame the ft/min number is divided by 10.

Correct????
 
I should think you would need to use "meters per minute" for your <Units>. Normally the VSI is expressed in units of "feet per minute"...

Code:
<Variable>VERTICAL SPEED</Variable> 
<Units>meters per minute</Units> 
<Scale>10</Scale>
 
Hi Ted,

if you go for metric units there's no need to convert to imperial using funky maths.
FSX is smart enough to do it all on it's own as long as you choose appropriate units.
In the SDK check the Simulation Variables and scroll all the way down for a full list of units of measurement.

On your VSI, keep in mind you also have negative values for sinkrate.
That would make your metric VSI have a total range of 20 meters/second.
Having said that, you should be fine with 20 keyframes since FSX is quite good at smoothing animations. Also it makes the math a bit simpler.
Another thing to keep in mind, sinkrate returns negative values but keyframes always start at zero so you need to tell the sim to add a value of 10 to the variable so that the variable and keyframes are in sync.
There's basicaly two ways of writing the same thing, using code tags....

Code:
   <PartInfo>
    <Name>needle_vsi_10ms</Name>
    <AnimLength>20</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:VERTICAL SPEED, m/s) 10 + </Code>
      </Parameter>
    </Animation>
    <MouseRect>
      <TooltipID>TOOLTIPTEXT_VSI_METERS_PER_SEC</TooltipID>
    </MouseRect>
  </PartInfo>


....sim tags. Note the "BIAS" tag.

Code:
 <PartInfo>
        <Name>needle_vsi_10ms</Name>
        <AnimLength>20</AnimLength>
        <Animation>
            <Parameter>
                <Sim>
                    <Variable>VERTICAL SPEED</Variable>
                    <Units>m/s</Units>
                    <Scale>1</Scale>
                    <Bias>10</Bias>
                </Sim>
            </Parameter>
        </Animation>
    <MouseRect>
      <TooltipID>TOOLTIPTEXT_VSI_METERS_PER_SEC</TooltipID>
    </MouseRect>
    </PartInfo>
 
Last edited:
Meteric

Mathias:

This makes so much more sense. So if I wanted to use meteric for manifold pressure as long as FSX reads this I can key frame similar to what we used to do in CFS3? I assume that this also holds true for airspeed as long as FSX reads kph. And again this should hold true for metric temps and other pressures as well....

Thanks

So much to learn!
 
Back
Top