TGG:

Path: SC/Disturbances

%   Computes a gravity gradient torque.

   Since version 1.
--------------------------------------------------------------------------
   Form:
   t = TGG( inr, u, wO )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   inr                (3,3) Inertia matrix
   u                  (3,:) Unit vector from the earth to the spacecraft
                            in the spacecraft body frame (the same frame as
                            the inertia matrix.)
   wO                 (1,1) Orbit rate (rad/sec)

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

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