Re: Re: R: [Flightgear-devel] Socket communication
Hi all, Attached you can find the example server I wrote.It should be 'platform independent' but I've tested it only under Windows andCygwin.It might be useful to someone else who has the same problem. I've seen it's a quite recurrent question... I'm goingto use a modified version ofit in my thesis so thanks again. Roberto -Messaggio originale-Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Erik HofmanInviato: mercoledì 7 luglio 2004 13.16A: FlightGear developers discussionsOggetto: Re: R: [Flightgear-devel] Socket communication Roberto Manca wrote: Hi all, This is just to thank you all for helping me. I've modified the "netfdm" client Erik told me (the client works perfectly but does exactly the opposite job I needed) to act as a server and receive the current flight model status through a FGNetFDM 'variable'. If you think it might be helpful I could give you the modified code to add it to the examples directory... That might not be a bad idea.Could you sent it to me please? Erik ___Flightgear-devel mailing list[EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! main.cpp Description: main.cpp ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: R: [Flightgear-devel] Socket communication
Roberto Manca wrote: Hi all, This is just to thank you all for helping me. I've modified the netfdm client Erik told me (the client works perfectly but does exactly the opposite job I needed) to act as a server and receive the current flight model status through a FGNetFDM 'variable'. If you think it might be helpful I could give you the modified code to add it to the examples directory... That might not be a bad idea. Could you sent it to me please? Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
R: [Flightgear-devel] Socket communication
Hi all, This is just to thank you all for helping me. I've modified the "netfdm" client Eriktold me (the client works perfectly but does exactly the opposite job I needed) to act as a server and receive the current flight model status through a FGNetFDM 'variable'. If you think it might be helpful I could give you the modified code to add it to the examples directory... Thanks Roberto PS: I've checked also the method suggested by Jon (only with a'JSBsim Cessna')and it seemed to work. -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Per conto di Erik Hofman Inviato: martedì 29 giugno 2004 18.52 A: FlightGear developers discussions Oggetto: Re: [Flightgear-devel] Socket communication Roberto Manca wrote: Hi all, I'd like to send some flight data (like altitude, speed, position...) from a machine that runs FlightGear to a slave machine (which will elaborate them online) on a socket connection. I haven't found any documentation on the way the data are arranged and sent. I don't even know which data are sent and how to choose them... so I don't know how to set up my client program on the slave machine. Therefore I'm trying to look at the code... Can anyone tell me which part of FlightGear code deals with socket data communications? Any idea, example, clue or suggestion is appreciated and would be very helpful... There is a sample implementation that shows how to do this in the sourcecode under FlightGear/examples/netfdm. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Socket communication
Hi all, I'd like to send some flight data (like altitude, speed, position...) from a machine that runs FlightGear to a slave machine (which will elaborate them online) on a socket connection. I haven't found any documentation on the way the data are arranged and sent. I don't even know which data are sent and how to choose them... so I don't know how to set up my client program on the slave machine. Therefore I'm trying to look at the code... Can anyone tell me which part of FlightGear code deals with socket data communications? Any idea, example, clue or suggestion is appreciated and would be very helpful... Many Thanks in advance RM I want to run flightgear on a computer(slave machine) which has no controls like keyboard, joysticks etc from a machine(server) which has all these controls. Any ideas and suggestions would be very helpful? Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! http://companion.yahoo.it ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Socket communication
On Tue, 29 Jun 2004 17:37:00 +0200 (CEST) Roberto Manca [EMAIL PROTECTED] wrote: Hi all, I'd like to send some flight data (like altitude, speed, position...) from a machine that runs FlightGear to a slave machine (which will elaborate Hi, Roberto: It is my understanding that FlightGear has a pretty versatile socket system set up. I don't know anything about it, though. That's probably what you'll want to use. However, until that time when someone pipes in to tell you how to use that, I thought I'd pass along something that might be helpful to you. If you are using a JSBSim aircraft model, you can specify an OUTPUT setion in the aircraft file. See some of the JSBSim aircraft config files for more information on that, or if you are interested and are having problems making it work, as me. The overview is this: if you add these lines into your JSBSim aircraft config file: OUTPUT NAME=localhost TYPE=SOCKET PORT=5678 RATE_IN_HZ 10 /OUTPUT you will get flight data output to the localhost on port 5678. The format of the output is text format, with the first set of data being shipped over being the labels for the data. You can look at the FGOutput.cpp and FGOutput.h files in the JSBSim directory for more information. I've tested this out using the netcat program, nc in my CygWin environment. Open a new console window and try this: nc -l -p 5678 This sets up a listening socket on port 5678. If you run FlightGear with the JSBSim aircraft that has the OUTPUT section in the aircraft config file, you _should_ be able to see the data coming across. I haven't tried this from within FlightGear yet. Good luck. Jon ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Socket communication
- Original Message - From: Roberto Manca [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 8:37 AM Subject: [Flightgear-devel] Socket communication Hi all, I'd like to send some flight data (like altitude, speed, position...) from a machine that runs FlightGear to a slave machine (which will elaborate them online) on a socket connection. I haven't found any documentation on the way the data are arranged and sent. I don't even know which data are sent and how to choose them... so I don't know how to set up my client program on the slave machine. Therefore I'm trying to look at the code... Can anyone tell me which part of FlightGear code deals with socket data communications? Look at the Network subdirectory for all the various options and the mini-docs for a howto. the necessary socket code is built into flightgear and envoked as --native-ctrls=socket,in,32,,5700,tcp where 32 is the data rate (packets/sec) 5700 is the socket address used by the slave and server tcp is the IP protocol (you can use udp, but packert deliver is not guaranteed) Any idea, example, clue or suggestion is appreciated and would be very helpful... Many Thanks in advance RM I want to run flightgear on a computer(slave machine) which has no controls like keyboard, joysticks etc from a machine(server) which has all these controls. Do you plan to run flightgear on the server as well? Otherwise you will most likely have to write or modify some socket code to satisfy the native-ctrls protocol ( see net_ctrls.hxx ) to send the data to the input socket on the slave machine. Regards John W. ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Socket communication
Roberto Manca wrote: Hi all, I'd like to send some flight data (like altitude, speed, position...) from a machine that runs FlightGear to a slave machine (which will elaborate them online) on a socket connection. I haven't found any documentation on the way the data are arranged and sent. I don't even know which data are sent and how to choose them... so I don't know how to set up my client program on the slave machine. Therefore I'm trying to look at the code... Can anyone tell me which part of FlightGear code deals with socket data communications? Any idea, example, clue or suggestion is appreciated and would be very helpful... There is a sample implementation that shows how to do this in the sourcecode under FlightGear/examples/netfdm. Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] socket communication
Hi All, Can anyone tell me which part of FlightGear code deals with programming of socket communication(which we use for multiple displays)? I want to run flightgear on a computer(slave machine) which has no controls like keyboard, joysticks etc from a machine(server) which has all these controls. Any ideas and suggestions would be very helpful? thanks Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel