This sample illustrates how to obtain several User Aircraft data values (lat/lon/alt/heading) via the SimConnect API in Microsoft ESP.
This is an extension of the original "Managed Data Request" SDK sample; it shows how to connect to ESP and make a one-time aircraft data request, or subscribe to the data each second, each simulation frame or each visual frame.
The sample can easily be extended to retrieve any of the other 200+ simulation variables available in the ESP platform.