• 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 Autopilot Variables

Zeiten

Resource contributor
Messages
444
Country
norway
Hello.

Can anyone give me some examples of the different variables used for the default autopilot?

For instant the VS function.
Could I use the AP_PITCH_REF_INC_UP and AP_PITCH_REF_INC_DN for setting the desired vertical speed for the autopilot?

So many options...:banghead:

E.g will this not work?
Code:
<Animation name="mip_AP_ias_hold" guid="7ace60a2-7d54-45f3-9cf3-2e4c73484841" length="50" type="Sim" typeParam2="mip_AP_ias_hold" typeParam="AutoPlay" />

<PartInfo>
        <Name>mip_AP_ias_hold</Name>
        <AnimLength>50</AnimLength>
        <Animation>
            <Parameter>
                <Sim>
                    <Variable>AUTOPILOT AIRSPEED HOLD</Variable>
                    <Units>bool</Units>
                    <Scale>50</Scale>
                </Sim>
                <Lag>300</Lag>
            </Parameter>
        </Animation>
        <MouseRect>
            <Cursor>Hand</Cursor>
            <HelpID>HELPID_AUTOPILOT_SPEED_HOLD</HelpID>
            <TooltipID>TOOLTIPTEXT_AUTOPILOT_SPEED_HOLD</TooltipID>
            <EventID>AUTOPILOT_AIRSPEED_HOLD_CURRENT</EventID>
        </MouseRect>
    </PartInfo>

The hand comes up and the tooltip works, but the button will not move.
The main autothrottle switch is active also.
 
Last edited:
That is an invalid XML Event. Use this instead:

<EventID>AP_PANEL_SPEED_HOLD_TOGGLE</EventID>

To adjust the vertical speed, use these events:

AP_VS_VAR_INC
AP_VS_VAR_DEC
 
Last edited:
Thank you Bill.

When the plane is released all credit for coding goes to you:o

A extra question.

Is it possible to add a mouserect for a visibility condition?

The reasen why I'm asking is because I have a button thats have a poly in front linked to it.
So when the button is pressed the poly gets visible and its states ON, but then the button in the back gets blocked so to speak.
 
Last edited:
I thought I would revive this thread as it answers half my question -- that is what event to use to vary the AP vertical speed. I'm guessing the suggested variable will increment it in 100 fpm steps? But I can't for the life of me figure out how to turn the vertical speed mode on and off to begin with. Anyone know?
 
AP_VS_ON followed by the AP_VS_VAR_INC/AP_VS_VAR_DEC events will do the job.
AP_VS_OFF to disconnect of course...
 
Thanks Bill. AP_VS_ON and OFF don't seem to be listed in the SDK, at least not in the ESP online documentation that I look at for convenience.
 
It is possible they may have been deprecated, but I don't believe that they have...

Give 'em a try anyway. That's the only way to be sure.

Alternatively, try AP_ATT_HOLD (attitude hold) or AP_ALT_HOLD
 
ESP online documentation has the auto pilot section grouped to make it easier to locate codes you will use depending on your auto pilot panel.
 
Well, so does the P3Dv1.4, v2.0, v2.1, and v2.2 documentation... ;)
 
AP_ALT_HOLD_ON and OFF worked and AP_VS_ON and OFF did not I'm testing in P3d, although I doubt that would make a difference. Anyhow I've got it working. Thanks for the help.
 
Back
Top