I wrote a message to the group last week and received the reply below. I'm
not sure how to convert the multiplayer position message data from the
geodetic coordinates. Could you point me to a place in the flightgear code
or a resource on the internet that might help me do this conversion? I'm
basically trying to get the coordinates to look the same way they do in the
FDM.
Thanks,
frank
> Hi Frank.
>On Monday 03 December 2007 00:01:50 frank hadder wrote:
>> I'm wanting to access the multiplayer positioning data in a third party
>> software. Currently, I've modified the FlightGear code to forward
position
>> messages received from the multiplayer server to my external application.
>> It appears I'm receiving these messages fine because I can read
information
>> in the message header (like the callsign of the plane in question and the
>> type of message being sent). However, when I try to read the position and
>> orientation portions of the message, I can't seem to convert these
numbers
>> to something accurate. I'm emulating (verbatim) the FlightGear code that
>> reads these messages. I suppose my question is, is there anything special
I
>> need to know about these numbers? Any special conversions I need to make
or
>> code I need to look at? Any help would be appreciated.
> There are only two points to mention:
> 1) The position data is XDR-encoded
> 2) The position is encoded in geodetic coordinates
> So in order to interpret the data you have to decode the XDR-data and
convert
> the coordinates to your local coordinate-system.
> There is nothing special or magical involved.
> Regards,
> Oliver
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel