RHSSlosh:

Path: SCPro/DynamicalModels

% Right hand side for a n bodies attached to a central hub.
 Each of the appendages has three degrees of rotational freedom connected
 to the hub.

 Type d = RHSSlosh to get a default data structure for a rigid body. 

--------------------------------------------------------------------------
   Form:
   [xDot, h] = RHSSlosh( x, t, g )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x     (7*(n+1),1)  [q1;q2;...;omega1;omega2;...]
   t     (1,1)         Time - unused
   g     (1,1)         Data structure
                       .inr      {n}   n 3x3 inertia matrices
                       .m        (1,n) Masses
                       .lambda   (3,n) Location of the body hinge j
                       .rho      (3,n) Location of body j center of mass
                     	.torque   (3,n) Torques

   -------
   Outputs
   -------
   xDot	(7*(n+1),1) State derivative
   h   	(3,1)       Angular momentum in the inertial frame

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

Children:

AerospaceUtils: Coord/QIToBDot
Common: Quaternion/Q2Mat
Common: Quaternion/QTForm
Math: Linear/Skew

Back to the SCPro Module page