PermanentMagnetRHS:

Path: SC/Attitude

% Right-hand-side for attitude dynamics with a permanent magent
--------------------------------------------------------------------------
   Form:
   [xDot,torque,bFBody] = PermanentMagnetRHS( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x             (7,1)   State vector [qEB; wB]
   t             (1,1)   Time (seconds from Julian date epoch d.jD0)
   d              (.)    Data structure with jD0, inertia, mu, t, r

   -------
   Outputs
   -------
   xDot          (7,1)   State derivatives 
   torque        (3,1)   Torque applied 
   bFBody        (3,1)   Earth magnetic field in body frame

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

Children:

AerospaceUtils: Coord/QIToBDot
Orbit: OrbitMechanics/RVOrbGen
SC: Disturbances/GravityGradientFromR
SC: Environs/BDipole
Common: Quaternion/QForm
Common: Time/Date2JD
Math: Linear/Cross

Back to the SC Module page