MATLAB: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(+rel: Interfacing FlightGear)
(→‎Related content: + Forum post about using the UFO FDM so that the 3D model can be checked in FlightGear without running Simulink)
Line 14: Line 14:


== Related content ==
== Related content ==
=== Wiki articles ===
* [[Interfacing FlightGear]]
* [[Interfacing FlightGear]]
=== Forum topics ===
* {{forum link|p=373898|title=Re: Created Quadcopter Model}} - Using the UFO FDM, so that the 3D model checked in FlightGear without running Simulink.


== External links ==
== External links ==

Revision as of 08:45, 23 September 2020

MATLAB (matrix laboratory) is a numerical computing environment and fourth-generation programming language.[1]

Simulink Aerospace Blockset

Since 2005, the Aerospace Blockset extension for Simulink includes an interface to visualize flight paths in FlightGear.[2] Data is transmitted via UDP network packets.

When using the Generate Run Script, you may have to manually adjust the paths in the created .bat file to match your FlightGear setup.

Bug in Generate FlightGear Run Script

The Generate FlightGear Run Script block in the Aerospace Blockset creates a faulty FlightGear command line when the "Select FlightGear data flow" option is set to "Send". It is correct when set to either "Receive" or "Send-Receive". The faulty command is

--fdm=network,localhost,5501,5502,5503

This is not a valid FlightGear command and is rejected by the program. The correct commands for this would be:

--fdm=null --native-fdm=socket,in,30,localhost,5502,udp

Replace the faulty command in the generated batch file in order to run your simulation in FlightGear.

Related content

Wiki articles

Forum topics

External links

References