RHSSpacecraftWithRWA:

Path: SCPro/DynamicalModels

% Computes the right hand side for a spacecraft with reaction wheels.
 The wheels can have damping and Coulomb friction and stiction.
 If you call it without any arguments it will return the default data
 structure.

 The gravity model is a point mass planet. The inertia of the body
 does not include the RWA polar inertia.

 RWA stands for reaction wheel assembly.

 The default data structure is for 3 orthogonal reaction wheels.
 Uses ReactionWheelFriction.m

 No demo.
--------------------------------------------------------------------------
   Form:
   d    = RHSSpacecraftWithRWA;
   xDot = RHSSpacecraftWithRWA( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x     (13+n,1)  State vector [r;v;q;omega;omegaRWA]
   t     (1,1)     Time (unused)
   d      (.)      Data structure 
                   .inr                (3,3) Body inertia matrix
                   .m                  (1,1) Spacecraft mass
                   .mu                 (1,1) Gravitational constant
                   .force              (3,1) External force in the ECI frame
                   .torque             (3,1) External torque in the body frame
                   .inrRWA             (n,1) Polar inertia of each wheel
                   .torqueRWA          (n,1) Torques on each wheel
                   .uRWA               (3,n) Unit vectors for the RWA
                   .friction            (.) Friction data structure

   -------
   Outputs
   -------
   xDot	(13+n,1)  State vector derivative d[r;v;q;omega;omegaRWA]/dt
   hECI	(3,1)     Inertial angular momentum

--------------------------------------------------------------------------
   See also: ReactionWheelFriction
--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/QIToBDot
SCPro: ProActuators/ReactionWheelFriction
Common: CommonData/SwooshWatermark
Common: Control/C2DZOH
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Quaternion/QTForm
Math: Linear/Cross
Math: Linear/Mag
Math: Linear/SkewSymm

Back to the SCPro Module page