Generate FlightGear run script on current platform
Animation/Flight Simulator Interfaces
To generate the run script, fill in the required information in the Parameters fields, then click Generate Script.
In the dialog box, fields marked with an asterisk (*) are evaluated as MATLAB® expressions. The other fields are treated as literal text.
From the list, select the target platform on which you want
to execute the run script. This platform can differ from the platform
on which you create the run script. Select
you want to generate a run script to run on the platform from which
you create the run script.
From the list, select the direction of the data flow:
Creates the run script to set up the sending of the
model from Simulink® to FlightGear.
Creates the run script to set up the receiving of the
model from FlightGear to Simulink.
Creates the run script to set up FlightGear to receive and broadcast data to and from Simulink.
Selecting this option does not mean that you receive the same
data that you sent (for example, with the
you might not see control surface position data). With this option,
you see primarily user input (such as joystick) and environmental
Specify the name of the folder containing the model geometry
that you want in the
Specify the airport ID. The list of supported airports is available in the FlightGear interface, under Location.
Specify the runway ID.
Specify the initial altitude of the aircraft, in feet. The block evaluates the value as a MATLAB expression.
Specify the initial heading of the aircraft, in degrees. The block evaluates the value as a MATLAB expression.
Specify the offset distance of the aircraft from the airport, in miles. The block evaluates the value as a MATLAB expression.
Specify the offset azimuth of the aircraft, in degrees. The block evaluates the value as a MATLAB expression.
Specify the network IP address of the machine on which the FlightGear software runs.
Specify your network flight dynamics model (fdm) port. For more information, see the Send net_fdm Packet to FlightGear block reference.
Specify your network control (
For more information, see the Receive net_ctrl
Packet from FlightGear block.
Specify the network IP address of the machine on which the MATLAB software runs.
Specify the name of the output file. The file name is the name of the command that you use to start FlightGear with these initial parameters.
The run script file name must be composed of ASCII characters.
Use these file extensions:
|Linux® and macOS|
Specify the name of your FlightGear installation folder.
FlightGear must be installed in a folder path name composed of ASCII characters.
Enter the correct information in the dialog box fields, then click Generate Script to generate a run script for FlightGear. Do not click this button until you have entered the correct information in the dialog box fields.