Path: SC/Control
% 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 base demo is the step response around y. This is a constant external torque that will cause the momentum to grow. The controller drives the transient error to zero. Note that the Coulomb friction causes limit cycling around zero wheel speed, an artifact of the model. Things to do: # Try varying the friction in the reaction wheels. # Try different control modes. # Try different disturbances. # Give the controller a different target quaternion. # Give the spacecraft nonzero initial body rates. ------------------------------------------------------------------------ See also RHSRWAOrbit, PID3Axis, Plot2D, RK4 ------------------------------------------------------------------------ % -------------------------------------------------------------------------- Copyright (c) 2015 Princeton Satellite Systems, Inc. All rights reserved. 2025.1 Change RHS and add TimeDisplay to sim loop --------------------------------------------------------------------------
SC: Control/PID3Axis SC: Dynamics/RHSRWAOrbit Common: Control/PIDMIMO Common: GUIs/Figui Common: GUIs/TimeDisplay Common: Graphics/Plot2D Common: Graphics/Plot3D Common: Graphics/TimeLabl Common: Quaternion/QUnit Math: Integration/RK4
Back to the SC Module page