MagneticTorquer:

Path: SC/MagneticControl

% Simple MagneticTorquer model. Outputs the torque in body coordinates.

   Input fields on initialization are:

   d.powerConsumption (1,1)  Watts
   d.dipole           (3,n)  ATM^2

   The magnetic field needs to be set for the output to be nonzero. The field
   should be in body coordinates.

   Failure mode is zero output. Commands anf failures are input using a matrix
   of logical values.
--------------------------------------------------------------------------
   Forms:
            MagneticTorquer( 'initialize', d )
            MagneticTorquer( 'update' )
            MagneticTorquer( 'set bfield', b )
            MagneticTorquer( 'set failure', f )
            MagneticTorquer( 'set command', c )
   power  = MagneticTorquer( 'get power consumption' )
   torque = MagneticTorquer( 'output' )
   d      = MagneticTorquer( 'get default datastructure' )
--------------------------------------------------------------------------

   -------
   Inputs
   -------
   action      (1,:)     'initialize' 'update'  'output' 
                         'set bfield' 'set failure'
   d           (1,1)     Depends on the action

   -------
   Outputs
   -------
   y           (1,1)     Depends on the action

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

Children:

Math: Linear/Cross

Back to the SC Module page