GravityGradientFromR:

Path: SC/Disturbances

%   Computes a gravity gradient torque from r and mu.
   q transforms from the frame in which r is defined to the body frame.

   Since version 10.
--------------------------------------------------------------------------
   Form:
   t = GravityGradientFromR( q, inr, r, mu )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   q                  (4,1) Quaternion from the r frame to Body
   inr                (3,3) Inertia matrix
   r                  (3,:) Orbit from the earth to the spacecraft
                            in the spacecraft body frame (the same frame as
                            the inertia matrix.)
   mu                 (1,1) Gravitational Parameter

   -------
   Outputs
   -------
   t                  (3,:) Torque (units will be consistent with inertia)

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

Children:

AC: ACData/ACTConstants
SC: SCData/sCTConstants
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: General/CellToMat
Common: General/DeleteCell
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Quaternion/QForm
Math: Linear/Cross
Math: Linear/Mag

Back to the SC Module page