Vikas N Kumar wrote: >Hi All >I need some help in collecting real-time data from FlightGear while >the aircraft is being flown. I will need it when I interface it with >hardware for instrument panels etc. >Could someone point where I could look for some info on this ? Either >in the source code or in some manual. I have read the Getting Started >Manual, and have not found anything in this regard except Jon >Wojnaroski's 747 project but that does not give any info on how the >realtime data was taken from FG or something similar. > >Any help will be appreciated. Fyi, I use Linux and play FG on Linux >and all my work will be on Linux. > >Thanks and regards, >Vikas > > > Look in the Network directory. There is the protocol for sending data from flightgear via a LAN to a display machine. There are two data structures, opengc which is probably out of date and sync with the latest flightgear and a 2nd lfsglass which should work with 0.9-10.
Here is a short shell script for setting up the network calls #!/bin/sh /usr/local/bin/fgfs \ --fg-root=/usr/local/FlightGear --bpp=32 \ --airport=KSFO \ --aircraft=c310 \ --disable-panel \ --disable-random-objects \ --visibility=25000 --disable-clouds \ --httpd=6500 #--native-ctrls=socket,in,30,,5700,udp \ #--opengc=socket,out,30,broadcast,6000,udp #--native-fdm=socket,out,30,192.168.2.100,5800,udp \ #--native-fdm=socket,out,30,192.168.2.101,5900,udp You can also download a working fgfs and source from www.lfstech.com that was used at a Mathworks seminar last year. Hope this helps. Regards John W. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel