This project is part of a bigger project involving flight data extraction from X-Plane and it's use for motion simulation. However, the C++ code shared here can be used with other endgoals.
Please refer to this article for context: https://www.linkedin.com/pulse/how-do-you-extract-data-from-flight-simulators-mahmud-safat-khan-phd/