Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Simconnect and GPS Variables

Featured Replies

Hi guys, I am trying to write a C# Desktop app that reads data from the sim using SimConnect.

I would need to find the distance to the destination airport in the flightplan loaded.

Do you guys know what variables may I read in order to get that?

Can I use somehow fs9gps variables to do so?

  • 3 months later...
On 1/27/2021 at 12:08 AM, edge33 said:

I would need to find the distance to the destination airport in the flightplan loaded.

You get access to the next and previous waypoint of the current waypoint segment, including lat/lon/alt.

Unfortunately there doesn‘t seem to be a way to get the entire flight plan (or at least the first and last waypoint).

Alternatively you could subscribe to the „airport facilities“ list, but a) the FS2020 implementation is currently somewhat broken and most importantly b) it won‘t tell you the final destination either. Only the airports within a certain radius (if it would work).

On 1/26/2021 at 3:08 PM, edge33 said:

Hi guys, I am trying to write a C# Desktop app that reads data from the sim using SimConnect.

Which sim??

Bert

  • 2 weeks later...
  • Author
On 5/4/2021 at 9:25 PM, Steeler said:

You get access to the next and previous waypoint of the current waypoint segment, including lat/lon/alt.

Unfortunately there doesn‘t seem to be a way to get the entire flight plan (or at least the first and last waypoint).

Alternatively you could subscribe to the „airport facilities“ list, but a) the FS2020 implementation is currently somewhat broken and most importantly b) it won‘t tell you the final destination either. Only the airports within a certain radius (if it would work).

 

I might be loading the airport XML file and allow the users to input the dest airport in my app, in order to compute the distance then

 

On 5/4/2021 at 10:07 PM, Bert Pieke said:

Which sim??

MSFS

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.