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

FS2004 VSI needle adjust?

Messages
231
Country
us-alabama
I am making a VSI gauge for an F4u-1 Corsair in fs2004. The gauge has a knob to adjust the needle's zero location. I have looked thru the SDK documents and cannot find an event code that looks like what I need.
Would AP_VS_VAR_INC and AP_VS_VAR_DEC be what I am looking for?
The F4u-1 had no autopilot.

Carl
 
No there are not. Those commands are used to control the autopilot.
 
You'll have to use your own vsi_offset variable.
Then instead of rotating the needle by (vertical_speed) you rotate it by (vertical_speed + vsi_offset), simple as that.
Then you add a knob to the gauge that increases or decreases vsi_offset.

'Borrowing' the autopilot VS variable and keys could work it would require a bit of extra code to make it work.
Also, the autopilot VS setting is in 100 ft/min increments.
And you obviously could not use this gauge in any aircraft that does have an autopilot.
Not worth the effort IMO.
 
Hmmm. So would I insert the L:var into the existing rotational statement like so:

Code:
<Element>
      <Position X="600" Y="600"/>
      <Image Name="f4u1_roc_needle.bmp" PointsTo="North" ImageSizes="74,635,74,635" Bright="Yes">
         <Axis X="37" Y="443"/>
      </Image>
      <Rotate>
         <Value Minimum="-60" Maximum="60">(A:Vertical speed,feet per minute) (L:VSI_offset,feet per minute) 100 /</Value>
         <Nonlinearity>
            <Item Value="-60" X="1042" Y="637"/>
            <Item Value="-50" X="1014" Y="757"/>
            <Item Value="-40" X="940" Y="884"/>
            <Item Value="-30" X="818" Y="986"/>
            <Item Value="-20" X="631" Y="1043"/>
            <Item Value="-10" X="390" Y="992"/>
            <Item Value="-5" X="249" Y="875"/>
            <Item Value="0" X="155" Y="600"/>
            <Item Value="5" X="253" Y="323"/>
            <Item Value="10" X="397" Y="207"/>
            <Item Value="20" X="629" Y="157"/>
            <Item Value="30" X="817" Y="214"/>
            <Item Value="40" X="941" Y="316"/>
            <Item Value="50" X="1013" Y="439"/>
            <Item Value="60" X="1041" Y="560"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="45"/>
         <Failures>
            <GAUGE_VERTICAL_SPEED Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="0"/>
         </Failures>
      </Rotate>
   </Element>

Or would I write a new element and Nonlinearity table just for the L:Var?

Carl
 
Not
<Value Minimum="-60" Maximum="60">(A:Vertical speed,feet per minute) (L:VSI_offset,feet per minute) 100 /</Value>
but
<Value Minimum="-60" Maximum="60">(A:Vertical speed,feet per minute) (L:VSI_offset,feet per minute) +</Value>
 
jeroen79

Thank you! I will work on it and post results as soon as I get them.
Thanks again!

Carl
 
jeroen79

It works like a champ! Thank you for your guidance. Here is the mostly finished code, just have to add the knob element, in this version it is just another layer on the background.bmp.

Code:
<Gauge Name="f4u1 roc" Version="1.0">
   <Image Name="f4u1_roc_background.bmp" ImageSizes="1200,1200,1200,1200"/>
    <Element>
      <Position X="0" Y="0"/>
      <Image Name="f4u1_roc_scale face.bmp" Bright="Yes">
      </Image>
   </Element>
<Element>
      <Position X="600" Y="600"/>
      <Image Name="f4u1_roc_needle.bmp" PointsTo="North" ImageSizes="74,635,74,635" 

Bright="Yes">
         <Axis X="37" Y="443"/>
      </Image>
      <Rotate>
         <Value Minimum="-6000" Maximum="6000">(A:Vertical speed,feet per minute) 

(L:VSI_offset,feet per minute) +</Value>
         <Nonlinearity>
            <Item Value="-6000" X="1042" Y="637"/>
            <Item Value="-5000" X="1014" Y="757"/>
            <Item Value="-4000" X="940" Y="884"/>
            <Item Value="-3000" X="818" Y="986"/>
            <Item Value="-2000" X="631" Y="1043"/>
            <Item Value="-1000" X="390" Y="992"/>
            <Item Value="-500" X="249" Y="875"/>
            <Item Value="0" X="155" Y="600"/>
            <Item Value="500" X="253" Y="323"/>
            <Item Value="1000" X="397" Y="207"/>
            <Item Value="2000" X="629" Y="157"/>
            <Item Value="3000" X="817" Y="214"/>
            <Item Value="4000" X="941" Y="316"/>
            <Item Value="5000" X="1013" Y="439"/>
            <Item Value="6000" X="1041" Y="560"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="45"/>
         <Failures>
            <GAUGE_VERTICAL_SPEED Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="0"/>
         </Failures>
      </Rotate>
   </Element>
   <Mouse>
      <Tooltip ID="TOOLTIPTEXT_VSI_FEET_PER_MIN"/>
         <Area Left="189" Top="966" Width="142" Height="142"> 
         <Area Right="71">
            <Cursor Type="DownArrow"/>
            <Click Repeat="Yes">(L:VSI_offset,feet per minute) 100 - (>L:VSI_offset,feet per minute)

</Click>
         </Area>
         <Area Left="71">
            <Cursor Type="UpArrow"/>
            <Click Repeat="Yes">(L:VSI_offset,feet per minute) 100 + (>L:VSI_offset,feet per minute)

</Click>
        </Area>
      </Area>     
   </Mouse>
</Gauge>

Thank you again!

Carl
 
Back
Top