| Aerospace Toolbox | ![]() |
update(h,time)
h.update(time)
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. |
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);
GenerateRunScript, initialize, play
![]() | update (Aero.Camera) | update (Aero.Node) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |