NadirSunPointingDemo:

Path: SCPro/Demos/ProControl

% An attitude and orbit simulation with reaction wheels.
This simulation includes reaction wheels with Coulomb friction and
damping. It is easy to specify the damping terms for each wheel. The demo
also includes the PID3Axis controller. The core dynamics is for a
gyrostat orbiting around a point mass.
The simulation uses the vector pointing mode of PID3Axis to point
a vector in the spacecraft frame either at nadir or at the sun.
Control logic is included to point at nadir when the spacecraft is
over the continental United States and at the sun otherwise.
------------------------------------------------------------------------
See also RHSSpacecraftWithRWA, PID3Axis, Plot2D, RK4
------------------------------------------------------------------------
%