Sign in to follow this  
n4gix

Nearest airport in C

Recommended Posts

I'm trying to get a list of the nearest airports to use in a C gauge. I've seen something in the xml gps that uses @c:NearestAirportItemsNumber to get the number of them and then loop through. I have a real hard time reading the polish notation that this is wrapped up in. Does anyone know how one would get this info into a C guage?Thanks,Steve

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

>Does anyone know how one>would get this info into a C guage?Steve, it can be done, but it is extremely difficult. The method we've developed is proprietary, but I can tell you that the answer(s) are in the gauges.h file and the SDK examples.

Share this post


Link to post
Share on other sites

I have looked through the SDK in depth and through the gauges.h file. I see you need the execute_calculator_code method but i don't know where to use this in my gauge. Also is the macro "c" in the xml gauge going to require me to add more to the parameter for the execute_calculator_code method?

Share this post


Link to post
Share on other sites

>I have looked through the SDK in depth and through the>gauges.h file. I see you need the execute_calculator_code>method but i don't know where to use this in my gauge. Also>is the macro "c" in the xml gauge going to require me to add>more to the parameter for the execute_calculator_code method?No, execute_calculator_code is used ONLY for standard XML token variables and key_events.You would need to access the gps.dll using a similar method to the XML version. Taken as an aggregate, it involves several thousands of lines of code, which on the face of it seems a bit excessive just to obtain the 'list of nearest airports...' ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this