RHSRWA:

Path: SCPro/DynamicalModels

% Right-hand-side of spacecraft dynamical equations with reaction wheels. 
   This function includes position, orientation, and wheel speed. 
   The disturbance function returns the body torque in Nm and the inertial
   force in N. It can handle any number of reactionwheels

     [torque, force] = funDist( t, d, x )
--------------------------------------------------------------------------
   Form:
   d =  RHSRWA;
   xDot =  RHSRWA( x, t, d )
--------------------------------------------------------------------------

   -------
   Inputs
   -------
   x           (:,1)	State vector [r;v;q;w;wRWA]
   t           (1,1)	Time
   d           (.)  	Data structure for the simulation
                         .uWheel   (3,4) Reaction wheel unit vectors
                         .inrWheel (1,1) Wheel inertia
                         .tRWA     (4,1) Reaction wheel torque
                         .tDist    (3,1) Other external torques
                         .funDist  (1,:) Disturbance function
                         .dist      (:)  Disturbance model data
                         .inertia  (3,3) Vehicle inertia
                         .mass     (1,1) Vehicle mass
                         .mu       (1,1) Gravitational parameter

   -------
   Outputs
   -------
   xDot        (:,1)     State vector derivative

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

Children:

AerospaceUtils: Coord/QIToBDot
SC: BasicOrbit/FOrbCart
Common: Database/Constant
Math: Linear/Cross

Back to the SCPro Module page