AccelToThrustAndQ:

Path: Orbit/OrbitManeuver

% Convert an acceleration vector into a thrust quaternion.
   Type AccelToThrustAndQ for a demo.
--------------------------------------------------------------------------
   Form:
   [thrust, q] = AccelToThrustAndQ( a, m, u )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   a            (3,:)     Acceleration vector(s)
   m            (1,1)     Mass (kg)
   u            (3,1)     Thruster unit force vector in the body frame

   -------
   Outputs
   -------
   thrust       (1,:)     Thrust
   q            (4,:)     Quaternion

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

Children:

Common: Graphics/Plot2D
Common: Quaternion/QForm
Common: Quaternion/U2Q
Math: Linear/Mag
Math: Linear/Unit

Back to the Orbit Module page