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

Issue adjusting VS setting?

Messages
10,163
Country
us-arizona
Hey all,

I have an S-Tec 55 in my plane I am doing. Very simple auto pilot.

It has a knob that can adjust your VS climb/descent setting. It also has a 'lock/turn on' VS setting. Thus, when you set your plane to a climb, for instance, you tap on VS and the AP will hold that attitude.

But.... I cannot get the VS to adjust.. For instance, lets say I want to lessen the VS setting. Can one do this or are you locked out when using the VS 'lock' command?


Code I am using below;



Code:
	<!-- ====== ATTITUDE HOLD LOCK ====== -->

      <Area Left="731" Top="147" Right="800" Bottom="196">
       <Tooltip>Engage Vertical Speed Hold (%((A:Vertical speed,feet per minute))%!d!% ft/min) </Tooltip>
         <Cursor Type="Hand"/>
         <Click Event="AP_ATT_HOLD"/>
      </Area>

	<!-- ====== ADJUST VS ====== -->

      <Area Left="907" Top="111" Right="975" Bottom="212">
         <Tooltip>VS ADJUST UP</Tooltip>
            <Click Event="AP_VS_VAR_INC" Repeat="Yes"/>
            <Cursor Type="UpArrow"/>
         </Area>
 
     <Area Left="822" Top="111" Right="895" Bottom="212">
         <Tooltip>VS ADJUST DOWN</Tooltip>
            <Click Event="AP_VS_VAR_DEC" Repeat="Yes"/>
            <Cursor Type="DownArrow"/>
         </Area>
 
Because you are using attitude hold, the only way to change pitch (V/S) is by using the following commands.
(&gt;K:AP_PITCH_REF_INC_DN)
(&gt;K:AP_PITCH_REF_INC_UP)

(&gt;K:SYNC_FLIGHT_DIRECTOR_PITCH) <-- Ref to current pitch
(&gt;K:AP_PITCH_REF_SELECT) <-- Ref to an attitude source

Some code examples are in the FS9 DC-3 AP.

If you want to use AP_VS_VAR_DEC & AP_VS_VAR_INC exclusively you would have to use Altitude hold, or - IIRC this doesn't work...
(&gt;K:AP_VS_HOLD)
(&gt;K:AP_VS_OFF)
(&gt;K:AP_VS_ON)
(&gt;K:AP_VS_SET)

But Altitude hold does, if climbing, set alt reference to 99K feet, if descending set alt reference to 0 feet when engaging.

Roman
 
Many thanks Roman! Very good to know.

I had forgotten the DC3 has an AP system. I'll definitely be checking that out for reference material....

Off to test this out.
 
That was a timely question, as I'm about to begin work on the very primitive AP for the ancient B737-200 Adv/COMBI I've been working on... ;)
 
Yes, working with those modes can be tricky since they sometimes affect (or don't affect) other modes that may be active at the moment. So extra code is required to get things to work as you expect...
 
Its odd. Ive been working in FS9 for many many years, and FSX for years also. You would think I would have auto pilot down pretty good by now. So many systems and codes and settings and sub systems....


:eek:
 
Back
Top