Curtis L. Olson wrote:
> > What I would like to do with the FG/SimGear is, that I could use the 
> > created scenery and could input LAT,LONG,ALT,HEADING,PITCH,ROLL,YAW 
> > from serial port and make the engine (SimGear??) to position the 
> > camera with those parameters. I did this with MSFS 2000 + FSUIPC 
> > interface with VisualBasic, but it is a bit too slow. 
> 
> 
> You may want to develop your own custom protocol module to minimize 
> (optimize?) the data you are sending but that is pretty 
> straightforward. Once you do that you can have FG grab new data off the 
> serial port as fast as your machine can render it. (You can specify the 
> rate in hz you wish to poll the serial port (or any other input channel.))

That remind me something I saw recently : the socket channel, and I guess
others, obey to the Hz parameter even in read mode. So, when you start 
fg with --telnet=5501, it default to 5hz and you can only update properties
at that rate. It this case, an external program was moving an airplane model 
that was put in the /models/model/... property hierarchy and we were surprised
to see the model doing big jumps although the external program was pushing 
property updates as fast as it could. There was no data congestion though
because every 5Hz, the telnet server was reading and processing all available 
data at that time.
The problem was solved by providing 30Hz to the telnet server.

So, is it a wanted behavior ? One could think that an input channel might process
data as soon as they arrive on the port/socket. I could try to cook a patch if it is
something we want to change.

-Fred


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to