SunEarthADSim:

Path: SpacecraftEstimation/AttitudeEstimation

% Test a sun and earth sensor attitude determination system. 
 dT is the time step for the attitude determination system. You can 
 numerically integrate with a smaller time step by setting
 nInt > 1. The initial attitude is unknown. This demo uses the sun
 and the earth as attitude sources. The earth provides roll and pitch
 while the sun provides yaw.

 The simulation starts with valid measurements from both sun and earth 
 sensors. The attitude and rate errors rapidly go to zero. The spacecraft
 has a small z rate so eventually the sun sensor measurement is no longer
 valid. The covariance then grows rapidly. Note that the plant noise 
 covariances are larger than the measurement covariances. This determines
 the rate of growth. When the sun is visible again, the covariance drops.
 Eclipses are not modeled which would cause additional sun sensor outages.
--------------------------------------------------------------------------
  See also QLVLH, QMult, QPose, QUnit, Plot2D, TimeGUI, RK4, Unit, 
  Date2JD, SunEarthAttDet, TOrbit, RVFromKepler, SunV1, FPSensors, RIGOut
  TimeLabl
--------------------------------------------------------------------------
%
--------------------------------------------------------------------------
   Copyright (c) 1994-2000, 2017 Princeton Satellite Systems, Inc.
   All rights reserved.
--------------------------------------------------------------------------
   2017.1 Changed the simulation duration and initial conditions
--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/QIToBDot
AerospaceUtils: Coord/QLVLH
SC: BasicOrbit/RVFromKepler
SC: Dynamics/RBModel
SC: Ephem/SunV1
SC: Sensor/FPSensors
SC: Sensor/RIGModel
SC: Sensor/RIGOut
SC: Sensor/U2Pix
SpacecraftEstimation: AttitudeEstimation/EKFSSG
SpacecraftEstimation: AttitudeEstimation/Measurements
SpacecraftEstimation: AttitudeEstimation/SunEarthAttDet
SpacecraftEstimation: StellarAttDet/AttProp
SpacecraftEstimation: StellarAttDet/DSTM
SpacecraftEstimation: StellarModels/FRBwRIG
Common: CommonData/SwooshWatermark
Common: Control/C2DZOH
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/DispWithTitle
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Mat2Q
Common: Quaternion/Q2Mat
Common: Quaternion/QForm
Common: Quaternion/QFromDQ
Common: Quaternion/QMult
Common: Quaternion/QPose
Common: Quaternion/QUnit
Common: Time/DTSToDTA
Common: Time/Date2JD
Math: Integration/RK4
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Skew
Math: Linear/SkewSymm
Math: Linear/Unit
Math: Trigonometry/CosD
Math: Trigonometry/SinD

Back to the SpacecraftEstimation Module page