RHSSpaceStation:

Path: Missions/SpaceStation

% Right-hand-side for attitude and orbit of spacecraft.
 The wheels can have damping and Coulomb friction and stiction. If you
 call it without any arguments it will return the default data structure.
 This calls a custom disturbance function.

 Thrusters are also available.

 The gravity model is a point mass planet. 

 RWA stands for reaction wheel assembly.

--------------------------------------------------------------------------
   Form:
   d = RHSSpaceStation; % data structure
   [xDot,hECI,torqueDrag] = RHSSpaceStation( 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
                   .invInr             (3,3) Inverse of inertia matrix
                   .mass               (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 (Nms)
   torqueDrag	(3,1)     Drag torque (Nm)

--------------------------------------------------------------------------
  See also SpaceStationDragDisturbance, ReactionWheelFriction, GSModel
--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/QIToBDot
Missions: SpaceStation/SpaceStationDragDisturbance
SC: Actuator/ReactionWheelFriction
SC: Dynamics/GSModel
Common: Quaternion/QForm
Common: Quaternion/QTForm
Math: Linear/Cross
Math: Linear/Mag

Back to the Missions Module page