Jump to content
Sign in to follow this  
n4gix

Nearest airport in C

Recommended Posts

Guest sbandersen

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

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


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest sbandersen

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...' ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...