Skip to content

Get double posi#189

Closed
ppljs wants to merge 4 commits intonasa:developfrom
ppljs:get_double_posi
Closed

Get double posi#189
ppljs wants to merge 4 commits intonasa:developfrom
ppljs:get_double_posi

Conversation

@ppljs
Copy link
Copy Markdown

@ppljs ppljs commented Nov 10, 2019

Overview

Updated the XPlaneConnect Plugin and APIs (Java, Matlab, Python and C) to deal with latitude, longitude and altitude positions in double precision float format. The tests for the C and Python API were updated as well.

Caution

  • I did not test the Java and Matlab APIs but I modified them to make them work with the double precision format (in theory) and they should be working normally. (Sorry about that)
  • This update of the the APIs and plugins is not backwards compatible with the old versions, since the values sent for latitude, longitude and altitude will be in double precision floats.

PS

If you prefere I could create a new function similar to the one that returns the position and orientation in 32bit floats to handle doubles (both in the plugin and in the APIs). This way the backwards compatibility would be maintained.

ppljs and others added 4 commits October 7, 2019 11:12
In MessageHandlers::HandleGetP changed the format of the returned data.
Modifications on the getPOSI methods to handle doubles and floats.
Modified the a C test function to test correctly with the new double getPOSI
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.

1 participant