The SCTTutorial.m script uses echo with pause to walk you through the steps of designing and implementing a spacecraft attitude control system. This function demonstrates control loop design with PIDMIMO, the statespace class, quaternions, and implementing the control system in a simulation loop. The right-hand-side rigid body dynamics use FRB and are integrated with our 4th order Runge-Kutta method, RK4.
Here is the step response of the controller:
Here is the response to small torques applied in the first step of the simulation:
After running the ideal control loop, the script shows you how to test the system with lag. The state update to the controller is now one sampling time interval behind.
Module: SC/Attitude
Edition: SCT Academic and Professional Editions
Published demo: SCTTutorial.m
Children: PIDMIMO, Step, FRB, RK4
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article