January 26, 20215 yr 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?
May 4, 20215 yr 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).
May 4, 20215 yr 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
May 17, 20215 yr 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.