Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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 Create a FlightGear Run Script.

Dialog Box

This figure is the FlightGear pane of the Generate Run Script block dialog box;

Here is the Network pane of the Generate Run Script block dialog box:

The following figure is the File pane of the Generate Run Script block 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. Select Default if you want to generate a run script to run on the platform from which you create the run script.

  • Win32

  • Win64

  • Linux

  • Mac

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 to and from 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.

FlightGear geometry model name

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

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 (ft)*

Specify the initial altitude of the aircraft, in feet. The block evaluates the value as a MATLAB expression.

Initial heading (deg)*

Specify the initial heading of the aircraft, in degrees. The block evaluates the value as a MATLAB expression.

Offset distance (miles)*

Specify the offset distance of the aircraft from the airport, in miles. The block evaluates the value as a MATLAB expression.

Offset azimuth (deg)*

Specify the offset azimuth of the aircraft, in degrees. The block evaluates the value as a MATLAB expression.

Destination/Origin IP address

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

Destination port

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

Origin port

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

Network IP address

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

Output file name

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. Use these file extensions:

PlatformExtension
Windows®.bat
Linux® and Mac OS.sh

FlightGear base directory

Specify the name of your FlightGear installation folder.

Generate Script

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.

Examples

See the asbhl20asbhl20 example.

Was this topic helpful?