DualDCMotors:

Path: Math/FDIR

% Simulates two DC motors.

   Since version 9.
--------------------------------------------------------------------------
   Form:
   xDot = DualDCMotors( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x              (4,1)  State vector [theta;omega;theta;omega]
   t              (1,1)  Time
   d              (1,1)  Motor structure
                         .beta  (2,1) Rate feedback
                         .alpha (2,1) Input voltage scaling
                         .v     (2,1) Input voltage (V)

   -------
   Outputs
   -------
   xDot           (4,1)  State vector derivative [theta;omega;theta;omega]

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

Back to the Math Module page