Main Content

GenerateRunScript (Aero.FlightGearAnimation)

Generate run script for FlightGear flight simulator

Syntax

GenerateRunScript(h)
h.GenerateRunScript

Description

GenerateRunScript(h) and h.GenerateRunScript generate a run script for FlightGear flight simulator using the following FlightGear animation object properties:

OutputFileNameSpecify the name of the output file. The file name is the name of the command you will use to start FlightGear with these initial parameters. The default value is 'runfg.bat'.
FlightGearBaseDirectorySpecify the name of your FlightGear installation folder. The default value is 'C:\Applications\FlightGear'.
GeometryModelNameSpecify the name of the folder containing the desired model geometry in the FlightGear\data\Aircraft folder. The default value is 'HL20'.
DestinationIpAddressSpecify your destination IP address. The default value is '127.0.0.1'.
DestinationPortSpecify your network flight dynamics model (fdm) port. This destination port should be an unused port that you can use when you launch FlightGear. The default value is '5502'.
AirportIdSpecify the airport ID. The list of supported airports is available in the FlightGear interface, under Location. The default value is 'KSFO'.
RunwayIdSpecify the runway ID. The default value is '10L'.
InitialAltitudeSpecify the initial altitude of the aircraft, in feet. The default value is 7224 feet.
InitialHeadingSpecify the initial heading of the aircraft, in degrees. The default value is 113 degrees.
OffsetDistanceSpecify the offset distance of the aircraft from the airport, in miles. The default value is 4.72 miles.
OffsetAzimuthSpecify the offset azimuth of the aircraft, in degrees. The default value is 0 degrees.
InstallSceneryDirect FlightGear to automatically install required scenery while the simulator is running. This property requires a steady Internet connection. For Windows® systems, you may encounter an error message while launching FlightGear with this option enabled. For more information, see Installing Additional FlightGear Scenery.
DisableShadersDisable FlightGear shader options. Your computer built-in video card, such as NVIDIA® cards, can conflict with FlightGear shaders. Consider using this property if you have this conflict.
ArchitectureSpecify the architecture on which the FlightGear software is running.

Examples

Create a run script, runfg.bat, to start FlightGear flight simulator using the default object settings:

h = fganimation
GenerateRunScript(h)

Create a run script, myscript.bat, to start FlightGear flight simulator using the default object settings:

h = fganimation
h.OutputFileName = 'myscript.bat'
GenerateRunScript(h)

Version History

Introduced in R2007a

See Also

| |