plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

nSoft avatar image
nSoft asked MiGMan_Flight_Sim_Museum edited

Read Flightplan Waypoint Names and Distance

Hello forum,

we are developing an extra tool for the simulator.

We search the right variables for the calculating the flightplan.

We want the names like. BERDI, GTO etc.

And the start airport and the end airport.


We cant find any right variable.


Anyone have an Idea?

We work with C# and the SimConnect SDK.

simconnect
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Kaiii3 avatar image
Kaiii3 answered

not in the SDK but working for AI, in FSX they worked for user as well, so i gues they do here as well:

this.SimConnect.AddToDataDefinition(DataIdentifier.AIOBJECT_FLIGHT_DATA, "AI TRAFFIC FROMAIRPORT", null, DATATYPE.STRING8, 0.0f, 0);
this.SimConnect.AddToDataDefinition(DataIdentifier.AIOBJECT_FLIGHT_DATA, "AI TRAFFIC TOAIRPORT", null, DATATYPE.STRING8, 0.0f, 0);

Not sure about the waypoints during the flight, but check the GPS/ATC vars within SimConnect.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

nSoft avatar image
nSoft answered

Ok we try some more values.

But the most variables from sdk or urs.

It crash the connection with the message, "System.AccessViolationException "

Can not read in safety ram.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

horlabs avatar image
horlabs answered horlabs edited

As far as i see, details about the flightplan are currently only accessible from javascript inside the simulator, neither through simconnect nor with wasm.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MiGMan_Flight_Sim_Museum avatar image
MiGMan_Flight_Sim_Museum answered

This is beyond my paygrade, but I can at least report that SimDashboard manages to display waypoint name, range and bearing via SimConnect.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MiGMan_Flight_Sim_Museum avatar image
MiGMan_Flight_Sim_Museum answered MiGMan_Flight_Sim_Museum edited

Here's a photo:

migpit-mk-vi-006.jpg

Waypoint details are retrieved from the sim by SimDashboard and displayed on a 10" android.


migpit-mk-vi-006.jpg (209.9 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.