Sir,

I figured out how to dump the data by setting FlightGear to use
native-fdm with this command: --native-fdm=socket,out,5,jrg,5500,udp
(constructed using the 'Advanced...' button on the gui).  But I can't
find the native_FDM.cxx file that you mentioned.  Does this file have an
alias perhaps?  I assume that it contains the information necessary to
interpret the hexidecimal data that I observe with my port sniffer
(PortPeeker).  Also, is the toolbox that you mentioned called the
"Instrument Control Toolbox"? It looks like that one has has the 'udp'
function in it.

Thanks for you help, 

-John
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bass
pumped
Sent: Wednesday, July 06, 2005 6:53 PM
To: FlightGear user discussions
Subject: Re: [Flightgear-users] Dumping out flight data

On 7/6/05, John Gagne <[EMAIL PROTECTED]> wrote:
> 
> Does anyone have any ideas on how to dump out the flight data (e.g.
> altitude, airspeed, attitude) so that it can be read and analyzed 
> using a seperate analysis program (e.g. MATLAB)?  I have seen the 
> AeroSim Blockset, but this communicates from MATLAB/Simulink to 
> FlightGear, and I need to communicate in the opposite direction.
Thanks in advance.
> 


I was able to do it.  

You do it by setting Flightgear to use Native-FDM and a transfer
protocol and speed of your choice.

Take a look at the native_FDM.cxx file to see the data sequence which is
being sent.

In addition I used a port sniffer to also look at the data coming out of
the port and try and correlate it.

On the Matlab side of things, I found that you need Matlab 7 or greater
to make it work.  There is a toolbox available for reading UDP or TCP.
You can use that to read the data coming out of Flightgear.

If you have any problems I will be glad to assist you.

Regards.

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

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

Reply via email to