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

Runway magnetic heading

Messages
2
Country
germany
Hallo,

as a beginner, I am trying to write a short XML code for a FSX gauge which shows – after entering a flight plan for a flight from Airport A to airport B – the following information as strings:

a) the distance to airport B, which is also the next waypoint,

b) the elevation of this airport

c) the course to this airport, and

d) the direction of the runways, that is not the numbers of the runways e.g. 15 and 33 , but rather the magnetic heading e.g. 154° and 334°

I had no problems to obtain the answers to a, b, and c, but I did not succeed with d.
I used the line:

(C:fs9gps:WaypointAirportRunwayDirection, degrees) (>L:RunwayDir, degrees)

but when I print L:RunwayDir as a string I always obtain Zero.

Obviously, it is not as simple as a thought. Anybody can help me ?

Best regards

Kurt
 
For all L:var, "units" you have two -and only two- choices:

bool
number (or enum)

Use (>L:RunwayDir,number) instead.
 
Hello,

thank you for your fast reply, I tried your suggestion, but it did not help.

For your information I should add that I get the distance and the elevation of the destination airport from the flight plan simply by using the GSP variables

@c:FlightPlanDestinationAltitude
@c:FlightPlanDestinationLatitude
@c:FlightPlanDestinationLatitude

Unfortunately, there is no variable such as
@c: FlightPlanDestinationLongestRunwaydirection.

This where I am presently lost.

Best regards,

Kurt
 
Hi Kurt,

try a readout on: (C:fs9gps:WaypointAirportRunwayDirection, degrees) .
I guess you will see a "0" as well. And you want to do a readout as a string ??? With the unit "degrees" you cannot expect a string. I think.

Dietmar
 
Back
Top