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:

AeroUtils: Coord/QIToBDot
Common: Quaternion/QForm
Math: Linear/Cross
SC: Disturbances/GravityGradientFromR
SC: Environs/BDipole

Back to the SC Module page