RHSGGRotational:

Path: SCPro/DynamicalModels

% Right-hand-side for spacecraft attitude dynamics with gravity gradient.
 Includes hysteresis states.
--------------------------------------------------------------------------
   Form:
   [xDot, tDamp] = RHSGGRotational( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x 	(7+n,1)	[q;omega;z] z are hysteresis damper states
   t   (1,1)   Time (s)
   d   (.)     Data structure
               .inertia	(3,3) Inertia matrix (kg-m^2)
               .torque   (3,1) Torque in the body frame (Nm)
               .r        (3,1) Position vector (km)
               .mu       (1,1) Gravitational constant (km^3/s^2)

   -------
   Outputs
   -------
   x     (7+n,1)	d[q;omega]/dt
   tDamp (3,1)   Damping torque (Nm)
 
--------------------------------------------------------------------------

Children:

AC: ACData/ACTConstants
AerospaceUtils: Coord/ECIToEF
AerospaceUtils: Coord/QIToBDot
CubeSat: AttitudeControl/InertiaCubeSat
SC: BasicOrbit/Period
SC: BasicOrbit/RVFromKepler
SC: Disturbances/GravityGradientFromR
SC: Environs/BDipole
SC: Ephem/EarthRte
SC: Ephem/MSidDay
SC: MagneticControl/BFromHHysteresis
SC: MagneticControl/MagneticHysteresis
SC: MagneticControl/TorqueHysteresisDamper
SC: SCData/sCTConstants
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Control/C2DZOH
Common: Database/Constant
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: MassProperties/IC623X3
Common: MassProperties/Inertias
Common: Quaternion/Q2Mat
Common: Quaternion/QForm
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2000
Common: Time/JD2T
Common: Time/T2JD
Math: Integration/RK4
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/Mag
Math: Linear/Skew
Math: Linear/SkewSymm
Math: MathUtils/R2P5

Back to the SCPro Module page