Re: [Flightgear-devel] Controlling FlightGear FDM through generic inputwith UDP

2008-04-20 Thread Alex Buzin
Hi!

On Friday, April 18, 2008 Haluk Sevener wrote:

 How can I run the master-slave model with generic i/o interface?
How can I control a FG instance with over network using generic interface 
with socket input option? (I failed doing this  one. maybe my input 
format in the xml configuration is invalid. but it's ok for the output 
stuff.)

What options your using to start FlightGear with generic i/o?
Check your .xml file carefully. It should contain tags input/input 
and output/output with the similar chunks. Master writes to the socket 
chunks from output/output and the Slave reads from input/input. If 
input chunks does not correspond to output chunks, your can get strange 
results.
If your have wrote a C++ code to handle incoming messages, now try to 
change your C++ code to drive FG using position and orientation only.
I am using generic protocol to drive FlightGear from external program. 
Protocol was changed to use binary i/o, not only binary output as it is done 
in current CVS code.


With respect,
Alex


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Controlling FlightGear FDM through generic inputwith UDP

2008-04-20 Thread Haluk Sevener
Thanks for your reply,

All I want to do is just send the commands to a FlightGear instance
over network with UDP, at the same time listening the properties of
the aircraft over network by using the same protocol. In other words,
I want to implement an external control mechanism.

I tested to see whether this is likely to work or not, I started a
master which would send current properties with generic socket output,
and I started a slave which would get the properties. But this is
wrong I think, because I must send controls to the slave, not the
properties. Anyway, I started the instances with the following
commands:

(master) fgfs --generic=socket,out,1000,127.0.0.1,7755,udp,udptest
(slave) fgfs --generic=socket,in,1000,127.0.0.1,7755,udp,udptest

My intention is not actually do it the master-slave way, but with an
external monitor-and-control system.

Thanks for your attention and sorry for poor info.

On 4/20/08, Alex Buzin [EMAIL PROTECTED] wrote:
 Hi!

 On Friday, April 18, 2008 Haluk Sevener wrote:

  How can I run the master-slave model with generic i/o interface?
 How can I control a FG instance with over network using generic interface
 with socket input option? (I failed doing this  one. maybe my input
 format in the xml configuration is invalid. but it's ok for the output
 stuff.)

 What options your using to start FlightGear with generic i/o?
 Check your .xml file carefully. It should contain tags input/input
 and output/output with the similar chunks. Master writes to the socket
 chunks from output/output and the Slave reads from input/input. If
 input chunks does not correspond to output chunks, your can get strange
 results.
 If your have wrote a C++ code to handle incoming messages, now try to
 change your C++ code to drive FG using position and orientation only.
 I am using generic protocol to drive FlightGear from external program.
 Protocol was changed to use binary i/o, not only binary output as it is done
 in current CVS code.


 With respect,
 Alex


 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel