| Aerospace Toolbox | ![]() |
GenerateRunScript(h)
h.GenerateRunScript
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 directory. The default value is 'D:\Applications\FlightGear'. |
| GeometryModelName | Specify the name of the folder containing the desired model geometry in the FlightGear\data\Aircraft directory. 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. |
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)
![]() | generatePatches (Aero.Body) | geoc2geod | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |