Skip to Main Content Skip to Search
Product Documentation

Aero.FlightGearAnimation - Construct FlightGear animation object

Syntax

h = Aero.FlightGearAnimation

Description

h = Aero.FlightGearAnimation constructs a FlightGear animation object. The FlightGear animation object is returned to h.

Constructor

MethodDescription

fganimation

Construct FlightGear animation object.

Method Summary

MethodDescription

ClearTimer

Clear and delete timer for animation of FlightGear flight simulator

delete

Destroy FlightGear animation object.

GenerateRunScript

Generate run script for FlightGear flight simulator

initialize

Set up FlightGear animation object.

play

Animate FlightGear flight simulator using given position/angle time series.

SetTimer

Set name of timer for animation of FlightGear flight simulator

update

Update position data to FlightGear animation object.

Property Summary

PropertiesDescription
TimeseriesSourceSpecify variable that contains the time series data.
TimeseriesSourceTypeSpecify the type of time series data stored in 'TimeseriesSource'. Five values are available. They are listed in the following table. The default value is 'Array6DoF'.
TimeseriesReadFcnSpecify a function to read the time series data if 'TimeseriesSourceType' is 'Custom'.
TimeScalingSpecify the seconds of animation data per second of wall-clock time. The default ratio is 1.
FramesPerSecondSpecify the number of frames per second used to animate the 'TimeseriesSource'. The default value is 12 frames per second.
FlightGearVersionSelect your FlightGear software version: '0.9.3', '0.9.8', '0.9.9', '0.9.10', '1.0', '1.9.1', or '2.0'. The default version is '2.0'.
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 'D:\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.
TStart

Specify start time as a double.

TFinal

Specify end time as a double.

The time series data, stored in the property 'TimeseriesSource', is interpreted according to the 'TimeseriesSourceType' property, which can be one of:

'Timeseries'

MATLAB time series data with six values per time:

lat lon alt phi theta psi

The values are resampled.

'StructureWithTime'

Simulink struct with time (for example, Simulink root outport logging 'Structure with time'):

  • signals(1).values: lat lon alt

  • signals(2).values: phi theta psi

Signals are linearly interpolated vs. time using interp1.

'Array6DoF'A double-precision array in n rows and 7 columns for 6-DoF data: time lat lon alt phi theta psi. If a double-precision array of 8 or more columns is in 'TimeseriesSource', the first 7 columns are used as 6-DoF data.
'Array3DoF'A double-precision array in n rows and 4 columns for 3-DoF data: time lat alt theta. If a double-precision array of 5 or more columns is in 'TimeseriesSource', the first 4 columns are used as 3-DoF data.
'Custom'Position and angle data is retrieved from 'TimeseriesSource' by the currently registered 'TimeseriesReadFcn'.

Examples

Construct a FlightGear animation object, h:

h = fganimation

See Also

fganimation | generaterunscript | play

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS