BoomMomentumDemo:

% Verify momentum conservation and rate adjustment for gimbal commands.
 The CAD model has a flat plate sail with a rigid mast attached by
 two gimbals. The gimbals are modeled as achieving any commanded 
 rate up to some maximum instantaneously. A momentum sink is used to 
 isolate the boom motion from the core body rates. Angular momentum 
 conservation is confirmed by using different time steps and  
 confirming that a smaller time step results in a smaller momentum 
 change over the course of the simulation.

   Functions demonstrated:
       SailWithBoom.m / SailWithBoom.mat, the CAD model
       HGimballedBoom.m, angular momentum function
       TwoBodyRateModel.m, attitude dynamics integrated with RK4

   Since version 7.
  ------------------------------------------------------------------------
  See also Constant, NewFig, Plot2D, Mag, RK4, Unit, JD2000, 
  QSunPointing, SunVectorECI, HGimballedBoom
  ------------------------------------------------------------------------
%
-------------------------------------------------------------------------------
	Copyright (c) 2005 Princeton Satellite Systems, Inc. 
   All rights reserved.
-------------------------------------------------------------------------------

Children:

Common: Database/Constant
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Time/JD2000
Math: Integration/RK4
Math: Linear/Mag
Math: Linear/Unit
SC: Ephem/QSunPointing
SC: Ephem/SunVectorECI
Sail: AttitudeDynamics/HGimballedBoom