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:

Common: Database/Constant
Common: Graphics/Plot2D
Common: Quaternion/QForm
Math: Linear/Cross
Math: Linear/Mag

Back to the SC Module page