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.

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

GenerateRunScript, initialize, play

  


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