These are the MATLAB m-files used in the Tutorial chapter of the Spacecraft Attitude and Orbit Control textbook:
- accel.mat, Gravity data
- CompareGravity.m, Compare simple and 36x36 gravity models
- Control.m, Control algorithm.
- Link.m, Computes the power on the ground from the spacecraft.
- LinkDemo.m, Demonstrate the Link function
- PlotSimulationOutputs.m, plots the simulation outputs.
- Contents.m
- Readme.m, Software readme.
- RHS.m, Right hand side of the integrated simulation.
- RHSOrbit.m, Right hand side of the orbit simulation.
- Simulation.m, Spacecraft simulation script.
- SimulationOrbit.m, Simulation of a spacecraft in GEO orbit.
- ThermalOptical.m, Temperature, force and power due to solar flux.
Download the whole package (zip file).