Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved MessageHandler HandleGetT and created getTERR C function #204

Merged
merged 6 commits into from
May 2, 2020

Conversation

NPrincen
Copy link
Contributor

@NPrincen NPrincen commented May 1, 2020

Improved the accuracy of the HandleGetT message handler in the plugin to work better in areas of high elevation far from the scenery origin. Used the method outlined by Ben Supnik in this forum post:

https://forums.x-plane.org/index.php?/forums/topic/38688-how-do-i-use-xplmprobeterrainxyz/&page=2

Also expanded the data that is sent back via the TERR UDP packet to include the velocity vector of the terrain. This may be useful to people programming a gear reaction model for an airplane landing on the aircraft carrier.

Finally, created a getTERR function in the C library so that people can request and receive the terrain probe data.

Also corrected minor typos in comments.
Follow the process in the following post to get accurate results:
// https://forums.x-plane.org/index.php?/forums/topic/38688-how-do-i-use-xplmprobeterrainxyz/&page=2

Also added the ground velocity vector to the output.  This is used for carrier landing where "ground" is moving.
Follow the process in the following post to get accurate results:
// https://forums.x-plane.org/index.php?/forums/topic/38688-how-do-i-use-xplmprobeterrainxyz/&page=2
Also added the ground velocity vector to the output. This is used for carrier landing where "ground" is moving.
xpcPlugin/MessageHandlers.cpp Outdated Show resolved Hide resolved
xpcPlugin/MessageHandlers.cpp Show resolved Hide resolved
C/src/xplaneConnect.c Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants