Quantcast

Documentation Center

  • Trial Software
  • Product Updates

update (Aero.FlightGearAnimation)

Update position data to FlightGear animation object

Syntax

update(h,time)
h.update(time)

Description

update(h,time) and h.update(time) update the position data to the FlightGear animation object via UDP. It sets the new position and attitude of body h. time is a scalar in seconds.

    Note:   This function requires that you load the time series data and run FlightGear first.

Examples

Configure a body with TimeSeriesSource set to simdata, then update the body with time time equal to 0.

h = Aero.FlightGearAnimation;
h.FramesPerSecond = 10;
h.TimeScaling = 5;
load simdata;
h.TimeSeriesSource = simdata;
t = 0;
h.update(t);

See Also

| |

Was this topic helpful?