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.
------------------------------------------------------------------------
AerospaceUtils: Coord/QLVLH CubeSat: Modeling/CubeSatFaces CubeSat: Modeling/InertiaCubeSat CubeSat: Simulation/CubeSatAero CubeSat: Simulation/CubeSatRadiationPressure CubeSat: Simulation/RHSCubeSat CubeSat: Visualization/GroundTrack SC: BasicOrbit/El2RV SC: BasicOrbit/OrbRate SC: BasicOrbit/Period SC: Environs/BDipole SC: Environs/SolarFluxPrediction SC: Visualization/PltOrbit Common: GUIs/Figui Common: Graphics/Plot2D Common: Graphics/TimeLabl Common: Quaternion/AnimQ Common: Quaternion/QForm Common: Quaternion/QMult Common: Quaternion/QPose Common: Time/Date2JD Math: Integration/RK4 Math: Linear/Mag Math: Linear/Skew
Back to the CubeSat Module page