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

GPS Ranges

Messages
206
Country
unitedkingdom
Hi,

Perhaps this is a silly question, but I wonder: am I right about what these two variables will give me:

Code:
(A:GPS TARGET DISTANCE, meters) -> the distance, in meters between the aircraft current position and the destination airport when a FS flightplan is loaded.
(A:GPS TARGET ALTITUDE,meters) -> the ground altitude in meters, of that destination airport (above)

If these are what they give, then I think they would be very interesting / useful for determining the landing altitude and whether the aircraft current descent profile is 'final' for my automatic pressurisation gauge! I assume they will return zero if there is no active flightplan, or do I need to be careful and check "GPS IS ACTIVE FLIGHT PLAN" as well?

Also, are there equivalents for the departure point - at least the distance from the route origin would be very useful...

Cheers,
Geoff
 
It would be easy enough to test these variables. Until testing, I wouldn't be sure if the "target' is the Destination Airport, or just the next Waypoint.

It "should" be the dest airport, otherwise the (A:GPS WP DISTANCE, meters) variable would be redundant. However, Microsoft ACES may have had and Department of Redundancy Department.
 
It would be easy enough to test these variables.

Yes, but I was at work and impatient to know if they worked or not :p

They don't! ... at least not in the way I would have liked, but these lot do:

Code:
(A:GPS FLIGHT PLAN WP Count,number) 1 - (>@c:FlightPlanWaypointIndex) (@c:FlightPlanWaypointRemainingTotalDistance,nmiles)
(@c:FlightPlanCruisingAltitude,feet)
(@c:FlightPlanDepartureAltitude,feet)
(@c:FlightPlanDestinationAltitude,feet)

Now got much more realistic pressurisation schedule since I can know the cruise altitude and the airport elevations...

Geoff
 
It would be easy enough to test these variables. Until testing, I wouldn't be sure if the "target' is the Destination Airport, or just the next Waypoint.

It "should" be the dest airport, otherwise the (A:GPS WP DISTANCE, meters) variable would be redundant. However, Microsoft ACES may have had and Department of Redundancy Department.

Probably not. You can test it, but these GPS A:Vars probably have meanings related to the gps module. In which case, TARGET means something completely different.

You can determine if an aircraft is on "Final" approach, and you can determine various types of distance from the departure point. But my preference, for flexibility, would be to stick with the fs9gps variables.

Bob
 
The only other reference to "TARGET" in the SDK are these three key_events:

Code:
KEY_CHASE_VIEW_NEXT     Cycle view to next target
KEY_CHASE_VIEW_PREV     Cycle view to previous target 
CHASE_VIEW_TOGGLE       Toggles chase view on/off

Without having tested this at all, it seems reasonable that the A:vars are connected with these key_events.
 
The only other reference to "TARGET" in the SDK are these three key_events:

Without having tested this at all, it seems reasonable that the A:vars are connected with these key_events.

Yup, agree, need to test it, but the A:Vars that Geoff mentions are GPS related. So, my guess is gps TARGET is more likely. Who knows..?

Anyway, Geoff is now on the right track using FlightPlanDepartureAltitude and
FlightPlanDestinationAltitude for his purposes.
 
Back
Top