Board index FlightGear Support Interfacing

Interface flightgear with FDM from Matlab

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

Interface flightgear with FDM from Matlab

Postby skrej93 » Fri Jul 10, 2020 11:52 am

Hello,

I am doing research within the field of aeronautics and have created a flight dynamics model in matlab. I would like to visualize this model and have understood that it’s possible to do that in flightgear. I have spent quite some time here on the forum trying to figure out how this should be done but haven't been able to understand how it's done.

I have never worked with flightgear before so I really appreciate all the help I can get.

Thanks in advance!
skrej93
 
Posts: 2
Joined: Fri Jul 10, 2020 7:24 am

Re: Interface flightgear with FDM from Matlab

Postby Gijs » Fri Jul 10, 2020 1:31 pm

Hi and welcome,

Do you happen to have a license for the Aerospace blockset in Simulink? That'll make live a lot easier, at it has been designed to interface with FlightGear.
See our wiki for some pointers: http://wiki.flightgear.org/MATLAB Feel free to ask if you need any further help!

Gijs
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9429
Joined: Tue Jul 03, 2007 2:55 pm
Location: Amsterdam/Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Interface flightgear with FDM from Matlab

Postby skrej93 » Mon Jul 13, 2020 10:27 am

Thank you for the reply GIjs!

I could probably get my hand on a Simulink license. However, we always try to avoid using Simulink when it’s possible due to various reasons so if there is another way to do it I would really appreciate any guidance/resources you might have.
skrej93
 
Posts: 2
Joined: Fri Jul 10, 2020 7:24 am

Re: Interface flightgear with FDM from Matlab

Postby SE-HK » Tue Jul 28, 2020 7:28 am

Can this be of interest?
http://wiki.flightgear.org/Generic_protocol
Using a protocol you can read/write parameters in FG.
SE-HK
 
Posts: 33
Joined: Wed Sep 02, 2009 1:16 pm
Location: Stockholm, Sweden
Version: git
OS: Ubuntu 20.04


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 1 guest