Board index FlightGear Support Interfacing

Native FDM Data Format  Topic is solved

Connecting two computers, using generic protocol, connecting with Matlab?

Native FDM Data Format

Postby Zago » Wed Oct 31, 2018 7:03 pm

Hello,

I want to use one of the built in FDMs to run Flightgear, but I also want to record the trajectory data to MATLAB as it runs. Since the Aerospace Blockset only has blocks for reading in net_ctrls packets I'm using the MATLAB function udp() to open a connection with the native-fdm protocol. I can successfully connect and stream data through the connection; however, my issue is interpreting the data. I've been searching the Wikis for a list that gives the order that properties are sent as well as their data type (float or double), so that I can convert the individual bytes into the data I need. Does a comprehensive list with this information exist and can someone point me to a link? Alternatively is there an existing MATLAB function for reading native-fdm packets that I don't know about? If neither exist, would the next best thing be to just write my own generic protocol XML file to send the data I need in an order and format that I know? Thanks!
Zago
 
Posts: 1
Joined: Wed Oct 31, 2018 6:54 pm

Re: Native FDM Data Format  

Postby curt » Wed Oct 31, 2018 7:19 pm

Hi Zago,

You can find the complete net-fdm struct declaration here:

https://sourceforge.net/p/flightgear/fl ... et_fdm.hxx

Best regards,

Curt.
Aerospace Engineering and Mechanics
University of Minnesota
curt
Administrator
 
Posts: 1117
Joined: Thu Jan 01, 1970 12:00 am
Location: Minneapolis, MN


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 2 guests