Skip to content

Double Lat/Lon/Alt for getPOSI#202

Merged
jason-watkins merged 19 commits intonasa:developfrom
NPrincen:develop
Apr 28, 2020
Merged

Double Lat/Lon/Alt for getPOSI#202
jason-watkins merged 19 commits intonasa:developfrom
NPrincen:develop

Conversation

@NPrincen
Copy link
Copy Markdown
Contributor

Issues #180, #181, and #189 all discuss the problem of precision in receiving Latitude, Longitude, and Altitude from X-Plane using getPOSI. sendPOSI does provide for double Lat/Lon/Alt, but getPOSI was still using float. This pull request includes the required getPOSI fixes for the xpcPlugin, the C examples, the Python3 examples, and the C TestScripts. New Python3 test scripts have been added. These fixes maintain backwards compatibility with previous xpcPlugin and getPOSI by still being able to interpret the previous UDP packet formats, but without the better precision. I did not fix the Python, Java, or Matlab examples or tests. There are also additional bug fixes included to eliminate compiler errors and warnings I was receiving when building using the MSYS2 mingw-w64 gcc compiler on Windows. I also endorse the pull request #191 for fixing Python3 bugs as I needed to make those changes in addition to the ones in this pull request to get everything working in Python3.

NPrincen added 12 commits April 18, 2020 11:30
Also fixed compiler warnings due to unsigned char for buffers.  Changed to char.
Also fixed compiler error for timeval struct tv not defined for WIN32.
getPOSI now can interpret either float or double Lat/Lon/h messages.  sendPOSI now sends double Lat/Lon/h messages.  Also fixed integer conversion bug in sendCTRL.
Created a Python3 compatible version of Tests.py
Also changed actual [7] to a double in doGETPTEST to fix compiler warning
Also fixed compiler warning related to doGETDTEST on line 108
@NPrincen
Copy link
Copy Markdown
Contributor Author

Now includes the fixes from #192 from master for merge into develop branch

@jason-watkins
Copy link
Copy Markdown
Contributor

Hi Norman,

Just a note to let you know I'm looking this over. Not the top of my priority list unfortunately, but the changes basically look good. Hopefully we can get this merged this week.

@NPrincen
Copy link
Copy Markdown
Contributor Author

NPrincen commented Apr 21, 2020 via email

@jason-watkins jason-watkins merged commit d8f2821 into nasa:develop Apr 28, 2020
@NPrincen NPrincen deleted the develop branch April 30, 2020 22:24
@NPrincen NPrincen restored the develop branch May 2, 2020 04:00
@jason-watkins jason-watkins mentioned this pull request Jun 27, 2020
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