Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-12-12 Thread Anders Gidenstam
On Tue, 12 Dec 2006, umesh pandey wrote: > ypedef struct {...} mystruct_t; > > mystruct_t anInstance; > > char * sendbuffer = (char *)&anInstance; > At the source computer I tried to print the char* sendbuffer by using > > printf("Data=%s",sendbuffer); Hi Umesh, That printf() is quite unlikely t

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-12-12 Thread umesh pandey
ypedef struct {...} mystruct_t; mystruct_t anInstance; char * sendbuffer = (char *)&anInstance; At the source computer I tried to print the char* sendbuffer by using printf("Data=%s",sendbuffer); But I cannot see any data packets formed.Is that i am using wrong format for printf or is the prob

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-12-12 Thread umesh pandey
Hi, I am using FGFS 0.9.10.I tried sending FGNetFDM structure(given in net_fdm.cxx)(after doing htond or htonf) from one computer to another computer running Flightgear but couldnt get it running. I tried Packet Analyzer to check whether packets are reaching the particular PC or not.Ifound that pa

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-11-28 Thread Anders Gidenstam
On Tue, 28 Nov 2006, umesh pandey wrote: After converting FGNetFDM structure(given in net_fdm.cxx) by using htonf,htond or htonl, do we need to convert the structure into char packets and send to FGFS. I am using FGFS 0.9.3. Hi! Well, when you have used hton*() on your struct it should (hopef

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-11-28 Thread umesh pandey
After converting FGNetFDM structure(given in net_fdm.cxx) by using htonf,htond or htonl, do we need to convert the structure into char packets and send to FGFS. I am using FGFS 0.9.3. On 11/24/06, Anders Gidenstam <[EMAIL PROTECTED]> wrote: On Fri, 24 Nov 2006, umesh pandey wrote: > What is th

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-11-24 Thread Anders Gidenstam
On Fri, 24 Nov 2006, umesh pandey wrote: > What is the difference if I implement a structure given in net_fdm_mini.cxx > source code and send this struct as a UDP packet for interfacing with > Flightgear?or is it necessary to use complete structure given in > net_fdm.cxx? I have taken a lo

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-11-23 Thread umesh pandey
What is the difference if I implement a structure given in net_fdm_mini.cxx source code and send this struct as a UDP packet for interfacing with Flightgear?or is it necessary to use complete structure given in net_fdm.cxx? I have taken a look at native_fdm.cxx file also and found that we

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-11-22 Thread Jorge Van Hemelryck
On Wed, 22 Nov 2006 15:20:08 +0530 umesh pandey wrote: > I checked using Flightgear 0.9.8 but could not run it successfully.The few > lines of log data are as follows: > > >I am also using correct command to start FGFS with external fdm: > > >D:\FlightGear 0.9.3\bin\Win32\FGFS.EXE--native-fdm=s

Re: [Flightgear-devel] sending external fdm data in the form of UDPpackets

2006-11-22 Thread umesh pandey
I checked using Flightgear 0.9.8 but could not run it successfully.The few lines of log data are as follows: Running Main Loop === Updating time Current Unix calendar time = 1164188445 warp = 0 Current GMT = 11/22/2006 9:40:45 Current Unix calendar time = 1164188445 warp = 0 C