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

Current airport ID

Messages
36
Country
spain
Hi,

I would like to get the airport ID where the aircraft is landed (the nearest airport would make the trick) but it seems there are no variables about it on the docs.

I have found the GPS variable NearestAirportCurrentICAO for gauges but I cannot make it work using SimConect.

Any ideas?

Regards,
Javier.
 
I'm using access dB lookup table. If you are working in C# look in to fslog source code over here in the forum.

José
 
Hello José,

I looked at your code (a complete one, indeed) but I wanted to avoid the "bgl-decompile" process to get all the airports.

My point is... if the info is already in the running FSX, why to have a paralell database? But, well, up to now, it seems the only way. I'm failing trying to get anything from the GPS gauge with SimConnect. :(

Regards,
Javier.
 
Yep... that seems a real pain. I would have thought SimConnect would have had a way to query the airports, runways, taxiways, radio frequencies (ILS, ATIS etc), navaids etc. Maybe they will add in a SimConnect patch? Someone should ask Aces to add it.
 
Yep... that seems a real pain. I would have thought SimConnect would have had a way to query the airports, runways, taxiways, radio frequencies (ILS, ATIS etc), navaids etc. Maybe they will add in a SimConnect patch? Someone should ask Aces to add it.

I did ask, long ago. They were reluctant because they were worried it would make it too obviously easy for folks to extract all the data which apparently they have been bound by commercial agreements to keep to themselves (presumably a Jeppesen contract).

I have pointed out that folks who want to do that would simply decode the data from the BGLs (and in fact I use a program for doing just that) -- they said, ah, that's different, they don't actually publish the formats of that information (any more), so such extraction is not their fault, they aren't violating any agreements.

I also pointed out that to extract stuff in bulk by visiting every one of the 24000 airports in turn and using a published SimConnect call would be a rather ludicrous and unlikely way for folks to "steal" this proprietary information.

Anyway, the upshot of all this is that something of the sort is hopefully on their list for one of the promised SimConnect updates. No dates of course, and at present there are far more serious concerns bugging them, literally.

I have quite a list of things still to go into the SimConnect interface and I'll be formalising it for re-presentation to the right folks as soon as the urgent bug-fix and performance problems are out of the way.

Regards

Pete
 
I have quite a list of things still to go into the SimConnect interface and I'll be formalising it for re-presentation to the right folks as soon as the urgent bug-fix and performance problems are out of the way.

Microsoft is more likely to take notice of you than most other people.

Another thing i thought of was ATC events. At some stage i was thinking of writing a virtual co pilot module and it would be nice if my co pilot could respond to all atc events including as frequency change, heading, altitude and speed change, clearances etc.

For example, if I'm on final and i'm the pilot flying, and my virtual copilot is handling flaps and ATC, i would like him to be able to respond to the ATC "cleared to land" clearance. That sort of thing.
 
At some stage i was thinking of writing a virtual co pilot module and it would be nice if my co pilot could respond to all atc events including as frequency change, heading, altitude and speed change, clearances etc.

We've long wanted the ability to detect the prompts the ATC issues and the related reply numbers. I tried to find a way to get at that in previous versions of FS. I am pretty sure it is on this list for additions we'd like to see in Simconnect.

Regards

Pete
 
I agree. I see SimConnect as a first step but it still lacks important functionalities and parameters from FSX.

We've long wanted the ability to detect the prompts the ATC issues and the related reply numbers. I tried to find a way to get at that in previous versions of FS. I am pretty sure it is on this list for additions we'd like to see in Simconnect.

I haven't tried this myself so this is just an idea: Is is possible to use Win32's functions (FindWindow, SendMessage...) to interact with the ATC window?

Regards,
Javier.
 
I haven't tried this myself so this is just an idea: Is is possible to use Win32's functions (FindWindow, SendMessage...) to interact with the ATC window?

And do what with it? I've never found a way to get the test from it, which would be a start. Not sure why you'd want to send stuff to it. There are ATC controls to respond, to make the choices. What else would there be?

Ideally I'd want to be able to suppress the window entirely and instead have the choices with values sent in one of a variety of fixed (ideally structural rather than textual) defined formats to a recipient client so that the choices can be automatically processed -- or simply manually processed but elsewhere, on a Networked PC for instance -- and the response selected and sent.

Regards

Pete
 
Ideally I'd want to be able to suppress the window entirely and instead have the choices with values sent in one of a variety of fixed (ideally structural rather than textual) defined formats to a recipient client so that the choices can be automatically processed -- or simply manually processed but elsewhere, on a Networked PC for instance -- and the response selected and sent.

Exactly... needs to be a proper SimConnect event and response mechanism.
 
And do what with it? I've never found a way to get the test from it, which would be a start. Not sure why you'd want to send stuff to it. There are ATC controls to respond, to make the choices.

So, a keystroke to answer. :)

Regards,
Javier.
 
Back
Top