| Contents | Index |
Animation/Flight Simulator Interfaces
The Generate Run Script block generates a customized FlightGear run script on the current platform.
To generate the run script, fill in the required information in the dialog box 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.
See Creating a FlightGear Run Script.

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.
Win32
Win64
Linux
Mac
Select Default 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:
Send
Creates the run script to set up the sending of the net_fdm control model from Simulink to FlightGear.
Receive
Creates the run script to set up the receiving of the net_ctrl control model from FlightGear to Simulink.
Send-Receive
Creates the run script to set up FlightGear to receive and broadcast data from and to Simulink.
Click to generate a run script for FlightGear. Do not click this button until you have entered the correct information in the dialog box fields.
Specify the name of the output file. The file name is the name of the command you use to start FlightGear with these initial parameters. Use file extensions as follows:
| Platform | Extension |
|---|---|
| Windows | .bat |
| Linux and Mac OS | .sh |
Specify the name of your FlightGear installation folder.
Specify the name of the folder containing the model geometry that you want in the FlightGear\data\Aircraft folder.
Specify your network flight dynamics model (fdm) port. For more information, see the Send net_fdm Packet to FlightGear block reference.
Specify the network IP address of the machine on which the FlightGear software runs.
Specify your network control (ctrl) port. For more information, see the Receive net_ctrl Packet from FlightGear block.
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.
Specify the initial heading of the aircraft, in degrees.
Specify the offset distance of the aircraft from the airport, in miles.
Specify the offset azimuth of the aircraft, in degrees.
See the asbhl20 example.
FlightGear Preconfigured 6DoF Animation
Pack net_fdm Packet for FlightGear
Send net_fdm Packet to FlightGear
Receive net_ctrl Packet from FlightGear
Unpack net_ctrl Packet from FlightGear

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |