Path: CubeSat/Simulation
% Demonstrate a CubeSat attitude and power system dynamics.
This simulation includes drag and radiation pressure. The only actuator
available for attitude is magnetic torquers, which is modeled as a
dipole. Performs an animation at the end which may take a few minutes.
The satellite is initialized pointing to the Earth with a rotation equal
to orbit rate, to nominally maintain that pointing. The z body axis is
pointed towards the Earth (nadir).
Things to try:
1. Turn surface disturbances off by uncommenting the line setting
d.surfData to empty; notice that the altitude no longer drops.
2. Initialize the battery charge b0 to zero
3. Comment out or change the fixed dipole in the for loop
4. Try a 1U instead of a 3U
----------------------------------------------------------------------
See also AnimQ, QForm, Plot2D, TimeLabl, RK4, Skew, Date2JD,
InertiaCubeSat, CubeSatAero, CubeSatRadiationPressure, RHSCubeSat,
CubeSatFaces, BDipole, SolarFluxPrediction, GroundTrack
----------------------------------------------------------------------
%
------------------------------------------------------------------------
Copyright (c) 2009 Princeton Satellite Systems, Inc.
All rights reserved.
------------------------------------------------------------------------
Since version 8.
------------------------------------------------------------------------