Path: CubeSat/Demos/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 Since version 8. ---------------------------------------------------------------------- See also AnimQ, QForm, Plot2D, TimeLabl, RK4, Skew, Date2JD, InertiaCubeSat, CubeSatAero, RHSCubeSat, CubeSatFaces, BDipole, SolarFluxPrediction ---------------------------------------------------------------------- % ------------------------------------------------------------------------ Copyright (c) 2009 Princeton Satellite Systems, Inc. All rights reserved. ------------------------------------------------------------------------
AeroUtils: Coord/QLVLH Common: Graphics/Figui Common: Graphics/Plot2D Common: Graphics/TimeLabl Common: Quaternion/AnimQ Common: Quaternion/QForm Common: Quaternion/QMult Common: Quaternion/QPose Common: Time/Date2JD CubeSat: AttitudeControl/InertiaCubeSat CubeSat: Simulation/CubeSatAero CubeSat: Simulation/CubeSatRadiationPressure CubeSat: Simulation/RHSCubeSat CubeSat: Utilities/CubeSatFaces CubeSat: Visualization/GroundTrack Math: Integration/RK4 Math: Linear/Mag Math: Linear/Skew SC: BasicOrbit/El2RV SC: BasicOrbit/OrbRate SC: BasicOrbit/Period SC: BasicOrbit/PltOrbit SC: Environs/BDipole SC: Environs/SolarFluxPrediction
Back to the CubeSat Module page