Roy Vegard Ovesen wrote:

On Saturday 02 October 2004 05:04 pm, Arnt Karlsen wrote:


..gnuplot?  Oughtta be available with Cygwin too.




I threw together a bash script some time ago that used gnuplot to plot the tail of a FlightGear log file. It worked in real-time, but the main problem was that it was so CPU intensive that FlightGear "suffered".




well, I also can confirm quantum mechanics: the observer influences the observed
particles. *Even on macroscopic scale!* :-)


Now I wanted to make something in Python, and I found an extremely simple module called tkplot.py. I made a simple Python program that reads FlightGear properties through telnet. It works quite well. I've only plotted one property (/velocities/airspeed-kt) so far, but I guess it would be quite easy to plot more in the same window.

Here is a screen-shot:

http://home.tiscali.no/rvovesen/plot.png

tkplot.py can be downloaded from here:

http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/python



I've just downloaded it and will give it a try.

This afternoon I found something called "rtp" (real-time plotter). If someone
wants to try it, just google "rtp david watt". That's GPL, c++, QT based, but seems
to have been stopped 4 years ago :-)
Has just one y-channel, takes data from stdin. Only some 1400 lines of code, but
seems that it can do a decent job with some additional hacking. Includes some
rudimentary GUI functions for scaling.
So far I have not made up my mind what to do. For some quick hacks python
might be preferable (as long as there are no quantum effects). Would give me
a chance to take a closer look at python (I feel most comfortable with c, c++ and perl).


Thanks for the hint, Roy.

Horst.


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

Reply via email to