Path: AerospaceUtils/CAD
% Set the inertial state of a CAD model.
This helper function inserts the state in the correct part of the data
structure. The LVLH quaternion is also computed, it is used for camera pointing
in the 3D views.
--------------------------------------------------------------------------
Form:
g = SetCADState( g, rECI, vECI )
--------------------------------------------------------------------------
------
Inputs
------
g (.) CAD model
rECI (3,1) ECI position vector (km)
vECI (3,1) ECI velocity vector (km/s)
-------
Outputs
-------
g (.) Updated CAD model
.rECI
.vECI
.qLVLH
--------------------------------------------------------------------------
AerospaceUtils: Coord/QLVLH Common: CommonData/SwooshWatermark Common: General/CellToMat Common: General/MatToCell Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/PltStyle Common: Quaternion/Mat2Q Math: Linear/Cross Math: Linear/Unit
Back to the AerospaceUtils Module page