Path: SpacecraftEstimation/AttitudeEstimation
% Test attitude determination with sun, earth and magnetometer. 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 earth and magnetic field as attitude sources. The earth provides roll and pitch while the sun provides yaw. The magnetic field provide orientation with respect to the local field lines. When using the UKF it is important to pick an appropriate plant noise matrix. If it is too high the filter may go unstable and produce large errors. With a gyro it is generally small. The terms for the delta quaternion and the bias are not the same (although they are in this demo). The choice of the UKF alpha parameter is also important. You will notice that it takes a few sun measurements for the filter to properly estimate the bias. -------------------------------------------------------------------------- See also SunMagAttDet, RVFromKepler, SunV1, FPSensors, RIGOut, BDipole -------------------------------------------------------------------------- % -------------------------------------------------------------------------- Copyright (c) 2017 Princeton Satellite Systems, Inc. All rights reserved. --------------------------------------------------------------------------
AerospaceUtils: Coord/ECIToEF AerospaceUtils: Coord/QIToBDot AerospaceUtils: Coord/QLVLH AerospaceUtils: Coord/U2AzEl SC: BasicOrbit/Period SC: BasicOrbit/RVFromKepler SC: Dynamics/RBModel SC: Environs/BDipole SC: Ephem/EarthRte SC: Ephem/MSidDay SC: Ephem/SunV1 SC: Sensor/FPSensors SC: Sensor/RIGModel SC: Sensor/RIGOut SC: Sensor/U2Pix SpacecraftEstimation: AttitudeEstimation/SunEarthMagAttDet SpacecraftEstimation: SensorMeas/MeasurementsSunMagUKF SpacecraftEstimation: StellarAttDet/AttProp SpacecraftEstimation: StellarAttDet/DSTM SpacecraftEstimation: StellarModels/FRBwRIG Common: CommonData/SwooshWatermark Common: Control/C2DZOH Common: Estimation/KFInitialize Common: Estimation/UKFUpdate Common: Estimation/UKFWeight 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/QForm Common: Quaternion/QFromDQ Common: Quaternion/QMult Common: Quaternion/QPose Common: Quaternion/QUnit Common: Time/DTSToDTA Common: Time/Date2JD Common: Time/JD2000 Common: Time/JD2T Common: Time/T2JD Math: Integration/RK4 Math: Linear/Cross Math: Linear/DupVect Math: Linear/Mag Math: Linear/Skew Math: Linear/SkewSymm Math: Linear/Unit Math: MathUtils/R2P5 Math: Trigonometry/CosD Math: Trigonometry/SinD
Back to the SpacecraftEstimation Module page