Skip to Main Content Skip to Search
Product Documentation

Generate Run Script - Generate FlightGear run script on current platform

Library

Animation/Flight Simulator Interfaces

Description

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.

For More Information About FlightGear

See Creating a FlightGear Run Script.

Dialog Box

Select target architecture

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.

Select FlightGear data flow

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.

      Note   Selecting this option does not mean that you receive the same data that you sent (for example, with the Send-Receive option, you might not see control surface position data). With this option, you see primarily user input (such as joystick) and environmental data.

Generate Script

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.

Output file name

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:

PlatformExtension
Windows.bat
Linux and Mac OS.sh

FlightGear base directory

Specify the name of your FlightGear installation folder.

FlightGear geometry model name

Specify the name of the folder containing the model geometry that you want in the FlightGear\data\Aircraft folder.

Destination port

Specify your network flight dynamics model (fdm) port. For more information, see the Send net_fdm Packet to FlightGear block reference.

Origin IP address

Specify the network IP address of the machine on which the FlightGear software runs.

Origin port

Specify your network control (ctrl) port. For more information, see the Receive net_ctrl Packet from FlightGear block.

Airport ID

Specify the airport ID. The list of supported airports is available in the FlightGear interface, under Location.

Runway ID

Specify the runway ID.

Initial altitude

Specify the initial altitude of the aircraft, in feet.

Initial heading

Specify the initial heading of the aircraft, in degrees.

Offset distance

Specify the offset distance of the aircraft from the airport, in miles.

Offset azimuth

Specify the offset azimuth of the aircraft, in degrees.

Examples

See the asbhl20 example.

See Also

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

  


Related Products & Applications

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