RHSRWAIDotSC:

Path: SCPro/DynamicalModels

% Right-hand-side of the spacecraft dynamical equations. 
   This function includes position, orientation 
   and 4 reaction wheels. It also includes time varying inertia.
   This right hand side is primarily to analyze control during deployment.
--------------------------------------------------------------------------

   -------
   Inputs
   -------
   x    	(:,1)	State vector  
   t   	(1,1)	Time
   d   	(.) 	Data structure for the simulation
               .uRWA     (3,4) Reaction wheel unit vectors
               .inrRWA   (1,1) Reaction wheel inertia
             	.tRWA     (4,1) Reaction wheel torque
             	.funIandD (1,:) Disturbance and inertia model
              	.tExt     (3,1) Other external torques

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

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