InitialOrientation:

Path: Orbit/OrbitCoord

% Compute the initial quaternion and body rates for a circular orbit, 
   such that a body vector stays aligned with a Hills frame vector.
--------------------------------------------------------------------------
   Form:
   [qEB, wB] = InitialOrientation( r, v, uB, uH )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r         (3,:)   ECI position
   v		     (3,:)   ECI velocity
   uB        (3,:)   Body vector to align
   uH        (3,:)   Reference Hills frame vector to stay aligned with

   -------
   Outputs
   -------
   qEB		  (4,:)   ECI to Body Quaternion
   wB        (3,:)   Body rate

--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/QHills
SC: BasicOrbit/OrbRate
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Quaternion/Mat2Q
Common: Quaternion/QForm
Common: Quaternion/QMult
Common: Quaternion/QPose
Common: Quaternion/QTForm
Common: Quaternion/U2Q
Math: Geometry/Perpendicular
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Unit

Back to the Orbit Module page