API Wish List (Updated: some already work!)

If any of these already work (and I simply don’t know the correct incantation), please let me know! I will update the list when things are implemented (or denied 😃).

UPDATE - Thanks @Laura for pointing me to the command “ListCommands” which lists all possible API calls and which helped me see that a couple of my wishes have already been granted (or at least will be available come Global, like the Engines command).

  • Command: Airplane.GetAutopilotState - returning a map of all autopilot values
    What for: this would be for being able to make copilot callouts confirming changes to the autopilot (“Heading set to 3-4-0” etc.) - also would enable an ‘altitude reached’ chime.
    UPDATE: THIS ALREADY WORKS! THE INCANTATION IS “AUTOPILOT.GETSTATE” DURING A FLIGHT

  • Command: Airplane.SetAxisValue - sets the given axis (x,y,throttle) to a certain value. Note this is NOT the NetworkAxis command since it isn’t for a network joystick but for API to set values.
    What for: TO/GA. 'Nuff said.
    UPDATE: FOR THROTTLE, IT ALREADY WORKS IN GLOBAL - YOU CAN CHANGE THE THROTTLE IN STEPS OF 2.5% WITH “COMMANDS.THROTTLEUPCOMMAND” AND “COMMANDS.THROTTLEDOWNCOMMAND”, AND YOU CAN GET THE THROTTLE STATE VIA “AIRPLANE.GETENGINESSTATE”

  • Command: Airplane.GetLightsState to additionally contain “NoSmokingSign” and “SeatBeltSign”
    What for: PA announcements could trigger based on changes to these.

  • Command: Commands.DumpFuel (with a param for on/off) for dumping fuel or stopping to.
    What for: Would enable a voice command to dump fuel.
    UPDATE: THIS ALREADY WORKS! THE INCANTATION IS “COMMANDS.FUELDUMP”

  • Command: Commands.ToggleEngine (with a param for which engine) for switching engines off and on.
    What for: Would enable a voice command to switch engines on/off.
    UPDATE: THIS ALREADY WORKS! THE INCANTATION IS “COMMANDS.ENGINE.START” OR “COMMANDS.ENGINE.STOP”

  • Command: Commands.SetTrim (with a param) for setting the trim value.
    What for: Would enable auto-trim when deactivating the auto-pilot.

27 Likes

This would be nice to see, hope they go through with most or even all of these

1 Like

Just updated the main post with new findings thanks to Laura.

The command ListCommands is AWESOME.

2 Likes

@epaga what did you do here? This will be interesting to say the least!

2 Likes

Just updated it again since I found a way to change and access the throttle.

2 Likes

Airplane.isOverspeeding
Simply returns bool on whether or not aircraft is overspeeding, regardless of whether it’s 250 below 10,000 or the other one (“the other one” is more useful as it is a variable speed)

(Or maybe it could be included in Airplane.getState?)

2 Likes

Hi,

It would also be great if any of the airplane info returned the livery of the aircraft, and not only the model type, that would be great for further integration, as neither of airplane.getstate nor airplane.getinfo return it.

Thanks a lot!

I’m just curious, is there way to pull screenshot of active window? It could be replay window or live flight?

Not at this stage

1 Like

Hope this gets added in future api.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.