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

Digital VSI Readout

Messages
10,163
Country
us-arizona
Hey all,

If this is Altitude readout font;

<String>%((A:Indicated Altitude, feet) 99999 min 0 max)%!5d!</String>

How might one change this to VSI readout?

I have tried a few routes, nothing is working.

Two separates...
<String>%((A:VERTICAL SPEED, feet) 0 min -3000 max)%!5d!</String>
<String>%((A:VERTICAL SPEED, feet) 3000 min 0 max)%!5d!</String>

One single...
<String>%((A:VERTICAL SPEED, feet) 3000 min -3000 max)%!5d!</String>

And.......... It would be nice if it read in 100's, at least when its locked.
 
Bill
The units for vertical speed are feet per second, not feet. It should also work with feet per minute.
To get it to read in 100's just divide by 100.
Roy
 
Thanks Roy,

Got it working now.

Does anyone know how to get a 'minus' to show up when the setting for VSI is in the negatives?

Code:
// VSI DIGITAL READOUT UNLOCKED NEGATIVE
  <Element>
      <Visible>(A:AUTOPILOT ALTITUDE LOCK, bool) !
               (A:AUTOPILOT MASTER,bool) 1 == and
               (A:AUTOPILOT ATTITUDE HOLD,bool) 1 == and
      </Visible>
   <Element>
     <Position X="475" Y="30"/>
  <Failures>
    <GAUGE_COMMUNICATIONS Action="NoDraw"/>
    <SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
  </Failures>
      <FormattedText X="220" Y="60" Length="8" Font="LCD" FontSize="60" FontWeight="600" 

Adjust="Right" VerticalAdjust="Top" Color="#ec6b1d" Bright="Yes">
      <String>%((A:Autopilot vertical hold var, ft/min) abs )%!4d!</String>
      </FormattedText>
   </Element>
  </Element>
 
Does anyone know how to get a 'minus' to show up when the setting for VSI is in the negatives?

why do you have abs in (A:Autopilot vertical hold var, ft/min) abs )?

<String>%((A:Autopilot vertical hold var, ft/min))%!4d!</String>
 
Deleted ???
This thread started as VSI !
then ended up as Autopilot vertical hold ?

Confused !!!

If you are still after VSI , the following works ,
Code:
      <Element>
          <Position X="29" Y="60"/>
            <FormattedText X="38" Y="10" Font="Tahoma" FontSize="10" LineSpacing="10" Adjust="Left" Color="#787878" BackgroundColor="#0f0f0f" Bright="Yes">
       <String>        
         %((L:VertSpd, enum) 0 == )
        %(-3000 3000 (A:Vertical speed,feet per minute) rng)
         %{if}
            %((A:Vertical speed,feet per minute))%!5d!%
         %((A:Vertical speed,feet per minute) 2990  &lt; (A:Vertical speed,feet per minute) 3010 &gt; or )
         %{else}
           %((A:Vertical speed,feet per minute) 100 /)%!5d!%
         %{end}               
       </String>
          </FormattedText> 
       </Element>

Cheers
Karol
 
Last edited:
Thanks Karol, thanks guys. I'll check this out. I was trying everything yesterday to get this to work, nothing worked.

The VSI is a readout on an autopilot. One mode is the climbout pitch for the FD. Secondary mode is VS Hold mode which is adjustable, would show in 100's.
 
The VSI is a readout on an autopilot.

Agree with Karol. You have switched from discussing a vertical speed indicator gauge to talking about autopilot settings. Related, but not the same.

If you want to see the autopilot vertical speed lock setting values, why don't you simply display

Code:
<String>%((A:Autopilot vertical hold var, ft/min))%!4d!</String>

IIRC, it should already be incremented in steps of 100 ft/min.

Bob
 
I have the following in the autopilot , the readout is in full for range +/- 9900'
the adjustments are in 100's .
I have a basic TFR incorporated in the autopilot , the TFR over rides the Vert hold , so on occassions I might get a VSI
of +/- 20,000-30,000 FPM showing .
Code:
    <!--VS-->
    <Element>
      <Position X="162" Y="38"/>
       <FormattedText X="57" Y="17" Font="Tahoma" FontSize="16" LineSpacing="18" Adjust="Right" Color="#28B228" Bright="Yes">
         <String>%((A:Autopilot vertical hold var, ft/min))%!5.0f!</String>
       </FormattedText>
    </Element>

    <!--VS SET-->
    <Area Left="171" Top="37" Width="25" Height="25">
      <Cursor Type="DownArrow"/>
      <Click Event="AP_VS_VAR_DEC" Repeat="Yes"/>
    </Area>
    <Area Left="197" Top="37" Width="25" Height="25">
      <Cursor Type="UpArrow"/>
      <Click Event="AP_VS_VAR_INC" Repeat="Yes"/>
    </Area>

Cheers
Karol
 
Hey guys,

Terrible luck with the VS on this. I had taken a long holiday from it and came back to work on it today.

I had no luck getting this thing to work. Karol, your code works brilliant, but it does one thing wrong. Let me explain how it goes.

* Turn on VS lock
* Plane locks in its attitude as required
* VS readout says zero (it is actually 300 to 1500 FPM, but the readout (VAR?) is saying 0).
* Clicking on the UP/DN buttons only gets say 10 or 20 FPM changes, not exact 100's. So the plane will be locked at 880 FPM climb, and tapping the button several times only gets about a 50 FPM change. Faster if you use mouse wheel.


What I need is;
* Turn on VS
* Plane locks attitude
* Font comes on stating exact climb, but in 100's, and actual, like 800 instead of zero.
* Tapping up or down buttons cause 100 FPM changes in Attitude.

I found out that I had been using VAR with my up down commands (about 2 months ago?) and thats why the dang buttons werent working. Smacks self...

Here is the code I have;

Buttons;


Code:
// VS UP IN VS MODE
       <Area Left="742" Top="118" Right="800" Bottom="150">
        <Visible>(A:AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>
        <Tooltip>TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_FTMIN</Tooltip>
         <Cursor Type="UpArrow"/>
      <Cursor Type="UpArrow"/>
          <Click Kind="LeftSingle+LeftRelease">
    (M:Event) 'LeftSingle' scmp 0 ==
        if{
          1 (>L:UP BUTTON ALT MODE FLAG,bool)           
            (>K:AP_PITCH_REF_INC_UP,bool)
          }
    (M:Event) 'LeftRelease' scmp 0 ==
        if{
          0 (>L:UP BUTTON ALT MODE FLAG,bool)
          }           
         </Click>
      </Area>


// VS DN IN VS MODE
       <Area Left="742" Top="190" Right="800" Bottom="225">
        <Visible>(A:AUTOPILOT ATTITUDE HOLD,bool) 1 == </Visible>
        <Tooltip>TOOLTIPTEXT_AUTOPILOT_VSI_INDICATOR_FTMIN</Tooltip>
      <Cursor Type="DownArrow"/>
          <Click Kind="LeftSingle+LeftRelease">
    (M:Event) 'LeftSingle' scmp 0 ==
        if{
          1 (>L:DN BUTTON ALT MODE FLAG,bool)           
            (>K:AP_PITCH_REF_INC_DN,bool)
          }
    (M:Event) 'LeftRelease' scmp 0 ==
        if{
          0 (>L:DN BUTTON ALT MODE FLAG,bool)
          }           
         </Click>
      </Area>


Karol, here is your code in my font;

Code:
  <Element>
      <Visible>(A:AUTOPILOT ALTITUDE LOCK, bool) !
               (A:AUTOPILOT MASTER,bool) 1 == and
               (A:AUTOPILOT ATTITUDE HOLD,bool) 1 == and
      </Visible>
   <Element>
      <Position X="162" Y="38"/>
       <FormattedText X="57" Y="17" Font="Tahoma" FontSize="16" LineSpacing="18" Adjust="Right" Color="#28B228" Bright="Yes">
         <String>%((A:Autopilot vertical hold var, ft/min))%!5.0f!</String>
       </FormattedText>
    </Element>
       </Element>


I cant believe just getting VSI to basically work can be this difficult. Evidently I need exotic code that;
A. Captures the exact climb/descent rate
B. Changes it to the nearest 100 FPM (such as locking at 855 FPM, but going to 900 FPM rounded off)
C. Clicking the UP/DN buttons/code causes 100 FPM incremental changes instead of say 10 or 30 FPM changes.

Could I be wrong? Is there an easy way? Should I just use the Airbus autopilot system on this 4 place gasoline engine powered plane?
 
The L:var that says
(>L:DN BUTTON ALT MODE FLAG,bool)
is what I use to turn on and off the blinky light in the UP / DN buttons. Mind you it doesnt blink, nor is it a strobe, I am just growing old and now refer to things that light up as blinkies.

thats (>L: DN BUTTON ALT MODE FLAG,bool) without the space after the :
 
Hi Lionheart

Above you are using ,
Code:
 (>K:AP_PITCH_REF_INC_UP,bool)
                and     
            (>K:AP_PITCH_REF_INC_DN,bool)
to change VSI ....

I thought that you should be using ,
AP_VS_VAR_INC
and
AP_VS_VAR_DEC

Cheers
Karol
 
Karol,

Dont you need to add the 'activate' switch when using a VAR? I thought VAR was the setting window, where you would set the VSI, then click 'engage'. When I use K:vars, the plane's VSI will not increase/decrease. What I want is to hit the up/down buttons and a 100 FPM change occurs per click.

Also, and this is just a guess or wish...

Can one write
(>K:AP_PITCH_REF_INC_UP, ft/min) 100 * to engage a 100 FPM command? Or is that strictly a bool?
 
Pitch reference is in degrees, no you can't set it the way you want. You're using a pitch hold control to do a vertical speed hold control. Of course it doesn't do what you want.
 
You have two different HOLD conditions , if by some miracle both worked at the same time you would have a conflict ,
each hold would be fighting each other .

Simple but not necessarily accurate examples might be ,

1. Only Pitch Hold on .
The Pitch hold engages 5 degrees pitch angle , now when it's stabilised the Vertical speed readout might be 500 FPM .

2. Only Vertical Speed hold on .
Vertical Speed hold set at 500 FPM , that might result in a 5 degree pitch angle ( as above ) .
You then change VS hold to 800 FPM , that might result in a 7 degree pitch angle .

You can see that changing the VS Hold value results in a Pitch angle change , now if the Pitch hold was On at the same time
it would be trying to maintain the 5 degrees .
There is your conflict .

To get it to work , you would need to switch Pitch Hold Off , then set the new Vertical speed Hold value , then wait until
the vertical speed readout matches the Vertical Speed Hold value , it needs to stabilise at that value .
Then ,
- capture and set the current pitch angle to Pitch Hold .
- switch Pitch Hold On .

That might work ,
But a much easier method is to forget about Vertical speed Hold ,
instead have Plus or Minus increment switches that change the Pitch Hold angle .
After you change the Pitch Hold setting you can verify that you have achieved what you desired by looking
at the VSI readout .
So for the above example you change Pitch from 5 to 7 degrees , if the VSI reads 800 FPM then you have got
what you were after , if not increment the pitch angle by another 1 degree.

Cheers
Karol
 
Thanks for that info Karol.

Sounds like I need to rethink the system.

No wonder it wasnt working for me a while back.
 
If you decide to continue with this one the following code snippets might be of use to you .

1.
Code:
   //--------- DIVE ANGLE ---- ********************************************************

<Element>
         <Visible>(A:Sim On Ground, number) 0 ==</Visible>
   <Element>
         <Position X="62" Y="130"/>
         <Text X="100" Y="23" Bright="Yes" Length="6" Font="Tahoma" Color="#FFFFFF" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No">
            <String>%((A:Plane pitch degrees, degrees) (A:INCIDENCE ALPHA, degrees) +  /-/) %!5.2f!</String>
         </Text>
   
   </Element>
   </Element>
by adding the "Incidence ALPHA" you get the " actual " climb angle that the aircraft prescribes through space .

2.
Code:
%Tgt VSI %((A:GROUND VELOCITY, knots) 6076 * 60 / (L:Set_GSangle, radians) atg * )%!5d!% fpm%
where the " (L:Set_GSangle, radians) " would be the angle determined in the first piece of code .

By rearranging the second piece of code you can get either a pitch angle or a Vertical speed for subsequent input into either
Pitch Hold or Vertical Speed Hold , depending on which way you decide to go .

Hope it's of some help.

Cheers
Karol
 
Well, I thought I had a plan setup for doing what I wanted. An idea came to me. Use the VSI button to 'hold' with, and with VSI 'off', have a separate program mode for the UP/DN buttons where they setup the VAR window reading, and then ARM would 'activate it'....!

I did this with visibility layers, dual use of the UP/DN button Area's.

Didnt work no matter what....

So... I changed it to a basic setup, turned off all use of the ARM button, deleted the VSI font from showing up. (The real one doesnt appear to do this, so oh well... I thought it would have looked pretty cool). Now... It works.... Its not what I wanted at all... but it works.
 
Back
Top