P3Axis:

Path: Common/Control

% A proportional controller
--------------------------------------------------------------------------
 Forms:
             d = P3Axis;
   [torque, d] = P3Axis( qECIToBody, d )
--------------------------------------------------------------------------

   -----
   Input
   -----
   qECIToBody (4,1)  ECI to body quaternion
   d          (.)    Data structure
                     .q_desired_state (4,1) Target quaternion
          .          .q_target_last   (4,1) Last target
                     .angle           (1,1) Angular increment
                     .axis            (3,1) Axis of rotation
                     .max_angle       (1,1) Maximum angle

   ------
   Output
   ------

   torque     (3,1) Control torque
   d          (1,1) Data structure
   
--------------------------------------------------------------------------

Children:

Common: Quaternion/AU2Q
Common: Quaternion/Q2AU
Common: Quaternion/QMult
Common: Quaternion/QPose
Math: Linear/Mag
Math: Linear/Unit

Back to the Common Module page