Path: SC/Dynamics
% Computes the time derivative of n spacecraft.
Employs a simple central force model for gravity.
The first state vector is the reference point
--------------------------------------------------------------------------
Form:
xDot = RHSNSpacecraft( x, t, d )
--------------------------------------------------------------------------
------
Inputs
------
x (13*n,1) [R;V;Q;W;r0;v0;q0;w0;...rk;vk;qk;wk]
t (1,1) Time (not used)
d (1,1) Data structure
.mu (1,1) Gravitational parameter
.f (3,n) Force vectors in ECI frame
.t (3,n) Torque vectors in body frame
.lambda (3,n-1) Hinge vectors on body k
.kappa (3,n-1) Hinge vectors on body 1
.inr {n} Inertia matrices
-------
Outputs
-------
xDot (13*n,1) d[R;V;Q;W;r0;v0;q0;w0;...rk;vk;qk;wk]/dt
--------------------------------------------------------------------------
AerospaceUtils: Coord/QIToBDot SC: Dynamics/ConstraintForceAndTorque Common: Database/Constant Common: Quaternion/QForm Math: Linear/Cross Math: Linear/Mag Math: Linear/Skew
Back to the SC Module page