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

Fix two bugs found in the XPlaneConnect java class (getPOSI and getDREFs methods) #284

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

cpsancha
Copy link

@cpsancha cpsancha commented Aug 9, 2022

Changes:

  • getPOSI: The data returned has changed from XPlane v10 to XPlane v11. In v10, latitude, longitude and elevation were float type (4 bytes) and in v11 they are double (8 bytes). Updated getPOSI function to take it into consideration.
  • getDREFs: Data size (position 6 of the RESP msg) is an integer type, but read as an uint, so when data size is greater than 128, the direct read results into negative size and throws NegativeArraySize exception. Fixed it.
  • Updated the compiled Jar used by the Matlab implementation with the changes hereabove

sanderdatema and others added 15 commits June 28, 2020 09:10
Add sendCOMM method for Python 3
Added BCOM/ECOM commands to enable support of beginning/ending X-Plane commands
…EFs methods)

 - getPOSI: The data returned has changed from XPlane v10 to XPlane v11. In v10, latitude, longitude and elevation were float type (4 bytes) and in v11 they are double (8 bytes). Updated getPOSI function to take it into consideration.
 - getDREFs: Data size (position 6 of the RESP msg) is an integer type, but read as an uint, so when data size is greater than 128, the direct read results into negative size and throws NegativeArraySize exception. Fixed it.
Bugfix: Add a cleanup command to closeUDP() (C/C++)
@GPGD
Copy link

GPGD commented Jan 23, 2023

Many thanks for this, fixed issues I was having

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.

6 participants