0 votes
asked by (12 points)
I've read all the other posts on this subject but none answer my specific question:

I am using XPlane11. I just got it yesterday 8/24/2017

I go into Settings-->Data Output and click on the item I want to output (E.g., Lat, Lon, Elevation), and configure the network stuff. I let AI fly whatever (E.g., F4 from any airport)

I start receiving data on my remote java application the moment I click Done on the Settings dialog.

datarefs say lat/lon/elev are all doubles.

Wireshark confirms their is a "DATA*" header on the data

I'm using a Java app to process the data and having a HECK of a time mapping the data to the correct data type.

I am using float and the numbers are close, but not the same as what gets output to data.txt. Using double gives me crazy numbers.

How do I properly type cast the received data in my java application? Or should I just be using C/C++?



1 Answer

0 votes
answered by (14 points)

I have exactly the same problem !

When using "float" conversion, I obtain understandable values but really not accurate.

When using "double" (as it shouldd be) I obtain Strange values I can't understand.

Did you have an issue?


commented by (12 points)
That was a while ago. The Xplane Data output was only an intermediate step for me. I ended up writing a plugin.

Welcome to X-Plane Q&A, where you can ask support questions and get answers from members of the community.

This site is for X-Plane support questions only. Please search for existing answers before posting your question. Off-topic questions will be locked.

If you’re new, you’ll need to register before asking your first question.

If your question is answered, click on the check mark to select the best response.