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:
OutputFileName | Specify 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' . |
FlightGearBaseDirectory | Specify the name of your FlightGear installation folder. The default value is
'C:\Applications\FlightGear' . |
GeometryModelName | Specify the name of the folder containing the desired model
geometry in the FlightGear \data\Aircraft folder.
The default value is 'HL20' . |
DestinationIpAddress | Specify your destination IP address. The default value is '127.0.0.1' . |
DestinationPort | Specify 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' . |
AirportId | Specify the airport ID. The list of supported airports is available
in the FlightGear interface, under Location.
The default value is 'KSFO' . |
RunwayId | Specify the runway ID. The default value is '10L' . |
InitialAltitude | Specify the initial altitude of the aircraft, in feet. The
default value is 7224 feet. |
InitialHeading | Specify the initial heading of the aircraft, in degrees. The
default value is 113 degrees. |
OffsetDistance | Specify the offset distance of the aircraft from the airport,
in miles. The default value is 4.72 miles. |
OffsetAzimuth | Specify the offset azimuth of the aircraft, in degrees. The
default value is 0 degrees. |
InstallScenery | Direct 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. |
DisableShaders | Disable 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. |
Architecture | Specify 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
initialize
| play
| update