Re: [Flightgear-users] FDM sockets out problem...

2006-03-03 Thread Drew Kirkpatrick
*sigh* Sorry :) On 3/3/06, Curtis L. Olson <[EMAIL PROTECTED]> wrote: > Drew Kirkpatrick wrote: > > >Strange, I copied over the FGNetFDM2Props function (commented out the > >stuff that doesn't involve htond's and htonf calls, and I'm printing > >out the current latitude, longitude, and altitude.

Re: [Flightgear-users] FDM sockets out problem...

2006-03-03 Thread Curtis L. Olson
Drew Kirkpatrick wrote: Strange, I copied over the FGNetFDM2Props function (commented out the stuff that doesn't involve htond's and htonf calls, and I'm printing out the current latitude, longitude, and altitude. The altitude is coming through perfectly now (in meters), however, the latitude an

Re: [Flightgear-users] FDM sockets out problem...

2006-03-03 Thread Drew Kirkpatrick
Strange, I copied over the FGNetFDM2Props function (commented out the stuff that doesn't involve htond's and htonf calls, and I'm printing out the current latitude, longitude, and altitude. The altitude is coming through perfectly now (in meters), however, the latitude and longitudes are screwy. Am

Re: [Flightgear-users] FDM sockets out problem...

2006-03-03 Thread Drew Kirkpatrick
Thanks Curt, I actually tried to grab the native_fdm.cxx function call FGNetFDM2Props( &fdm, false ) by including the header native_fdm.hxx and trying to link in all the lib*.a's. But I'm hopelessly lost in compile and linking errors. Think it would be easier if I look up that function and just r

Re: [Flightgear-users] FDM sockets out problem...

2006-03-03 Thread Curtis L. Olson
Drew Kirkpatrick wrote: Yeah, I'm using the native-fdm class as the data structure to receive the binary data, I think that's the data the udp packets is sending out when you register the native-fdm/socket/out bit to fgfs. Someone correct me if I'm wrong here? I just have my syntax boned up and

Re: [Flightgear-users] FDM sockets out problem...

2006-03-02 Thread dene maxwell
> Reply-To: flightgear-users@lists.sourceforge.net To: flightgear-users@lists.sourceforge.net Subject: Re: [Flightgear-users] FDM sockets out problem... Date: Fri, 3 Mar 2006 01:02:00 -0500 Yeah, I'm using the native-fdm class as the data structure to receive the binary data, I think that's the

Re: [Flightgear-users] FDM sockets out problem...

2006-03-02 Thread Drew Kirkpatrick
and will be > largely unreadable unless you have a compatible data structure to receive > them in. > > Cheers > :=D ene > > > > >From: "Drew Kirkpatrick" <[EMAIL PROTECTED]> > >Reply-To: flightgear-users@lists.sourceforge.net > >To: flightgear

RE: [Flightgear-users] FDM sockets out problem...

2006-03-02 Thread dene maxwell
format and will be largely unreadable unless you have a compatible data structure to receive them in. Cheers :=D ene From: "Drew Kirkpatrick" <[EMAIL PROTECTED]> Reply-To: flightgear-users@lists.sourceforge.net To: flightgear-users@lists.sourceforge.net Subject: [Fligh

[Flightgear-users] FDM sockets out problem...

2006-03-02 Thread Drew Kirkpatrick
I'm none too familiar with sockets programming, so bear with me here. I'm starting flightgear like so: fgfs --native-fdm='socket,out,30,localhost,5050,udp' And have a listener running on localhost 5050. At this point I'm just trying to print out the fdm values, but I'm getting garbage. Anyone poi