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

FSXA Using GPS data in a XML/C++ system

Somehow, poking around inside the FS system is kinda fun in a masochistic way...

Dutch

There's a song for that! The wonderful "Machosism Tango" by the inemitable Tom Lehrer:

http://www.staff.vu.edu.au/sokolov/Resume/Culture/The Masochism Tango.mp3

For the math challenged, "Math Song":

http://www.staff.vu.edu.au/sokolov/Resume/Culture/Lobachevsky.mp3

As a priest, my favorite is his inspiring "Vatican Rag":

http://www.staff.vu.edu.au/sokolov/Resume/Culture/The Vatican Rag.mp3

EDIT: One more song "New Math" http://curvebank.calstatela.edu/newmath/newmath.htm
 
Last edited:
Hi guys,

sorry I am a bit late with my response but I was quite busy during the last days.
I appreciate you efforts to sort out this problem. Unfortunately it seems like the GPS variables simply can't be accessed from a C++ gauge - at least not by using the execute_calculator_code function.
Although it seems that some functions exist that are dedicated to communicate with the GPS system, they are just not documented in the SDK (prove me wrong!).

For my specific problem, I can still go back to my original thought and use simConnect to gather the relevant data.

So thanks for your help and the music and stay tuned for the next unsolvable question! :D

Cheers,
Vitus
 
It is most certainly not "documented" at all, but all that one needs is to be found by a close examination of the ITrafficInfo.h file, as well as the macros found in the gauges.h file, as well as a very through search of the AVSIM forum archives for the Aircraft and Panel forum between the years 2005 and 2007.

Everything I've done before in C is based on a proprietary implementation of the IPanelCCallback methods as exposed in the ITrafficInfo.h file in the FS9 SDK.
 
Thanks, Vitus, I'm glad to read your reply. :D I was beginning to think it was only me that couldn't use execute_calculator_code to get the fs9gps stuff! There's info out there on the net that claims that it can be done and contains explicit examples. It's just it's never produced anything for me but zeros.

When I get time I intend to follow Bill's hints and use the C callbacks to see what I can get. But this isn't a priority. My XML stub is working okay for now.

Thanks!
Dutch
 
Back
Top