• 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 To set the Autopilot to climb...

Messages
261
Country
ireland
Hi,

I am messing around with an autopilot of my own (for fun!) in the Bendix King KAP 140 style (using XML).

I want to get the AP to climb or descend the aircraft at a desired rate of FPM.

I have used "0 (>K:AP_VS_VAR_INC)" and "0 (>K:AP_VS_VAR_DEC)" to set the desired rate.

What is the command to tell it to climb/descend? I don't want to give it an altitude to reach, just climb until I tell it to stop!

What is the command then to tell it to stop at the altitude which the aircraft has reached now?

I have tried "0 (>K:AP_PANEL_ALTITUDE_HOLD)" (and_ON and _OFF) until I was blue in the face, and none appeared to achieve my purpose.

I think I have gotten FS2004, my Autopilot, and myself confused! (and it doesn't take much!)

Can anyone un-confuse me? Please?

Walter
 
As far as I know, FS9 has no V/S hold function like you want.

Here's what I used to switch the "current V/S Hold" on/off.
Code:
<Mouse>
   <Cursor Type="Hand"/>
   <Tooltip>Toggle Current V/S Hold</Tooltip>
   <Click Repeat="No">
     (L:F28_VH_State,bool)
     if{
       0 (&gt;L:F28_VH_State,bool)
       (&gt;K:AP_ALT_HOLD_OFF)
     }
     els{
       1 (&gt;L:F28_VH_State,bool)
       (A:VERTICAL SPEED,feet/minute) d 0 &gt;
       if{ 100 / int 100 * 100 max (&gt;K:AP_VS_VAR_SET_ENGLISH,feet/minute) 90000 }
       els{ 100 / int 100 * -100 min (&gt;K:AP_VS_VAR_SET_ENGLISH,feet/minute) 0 }
      (&gt;K:AP_ALT_VAR_SET_ENGLISH)
      (&gt;K:AP_ALT_HOLD_ON)
    }
  </Click>
</Mouse>
So: sets the AP AltHold ON, with target Altitude set to an extreme value ( 0 or 90000 ft) and set the required V/S to the actual value of V/S when you click it ON.

If you want to set the V/S to a predefined value instead of the actual V/S, just replace (A:VERTICAL SPEED,feet/minute) by an Lvar set another way .

Anyway, it gives you the right events to use....

Rob
 
Back
Top