by NewbieJack » Sun Feb 23, 2003 10:36 am
I am a new C++ programmer and am trying to extract the Lat, Lon, Altitude and Airspeed parameters from the Flight Sim 2002 aircraft and feed it to another application.
I found the Netpipes SDK, which I am sure is sufficient for a good programmer to do the task, but I am having trouble with it.
If this is not the right Forum, please advise where I should go. Be kind javascript:grin()
Grin
I have modified the "Sample" netpipes code so it does not send the data from Flight Sim to another computer on a LAN, but merely writes it to the Netpipes buffer[2048].
I am trying to read the buffer and printf the key data I want in the dos window,
I can find the FRIB records that have the data I want, and am able to printf the ASCII character data. The problem is printing the numerical data. No matter what format I use I can't get the numbers to print correctly. For example, the Latiitude at Melbourne Florida is about 28 degrees, but my printf produces 36 3E 45 FFFFFFC0 33 FFFFFFEE 19 3C 40. Using the IEEE standard for floating point arithmetic, I can see that the 3C 40 part of my output is around 28, but again I can not get the formats to print it out in decimal. Any guidance concerning the correct way to print this data would be greatly appreciated.