Path: FormationFlying/Analysis
% Post simulation analysis of alignment. First load a data file from a DFF simulation into the Plotting Tool, then export the data to the workspace. Call this function to plot a time history of the body vector of each spacecraft that is aligned with a specified vector in Hill's frame. -------------------------------------------------------------------------- Steps: >> sim = TestOrbAttControlSimStruct; % use any simulation struct you want >> d = DFFSimulation( sim ); % run the simulation >> PlottingTool('load sim data',d); % load the sim data to the Plotting Tool >> PlottingTool('export'); % export data to the workspace >> uB = CheckAlignment( [0;0;1] ); % analyze the alignment -------------------------------------------------------------------------- ------ Inputs ------ uH (3,1) Unit vector in Hills frame (default is +y direction) scIndex (1) Index of the spacercaft you wish to analyze (default is all) ------- Outputs ------- uB {nSC,1} Cell array of time histories of unit body-frame vectors aligned with specified Hills frame vector --------------------------------------------------------------------------
AerospaceUtils: Coord/QHills AerospaceUtils: Coord/QLVLH FormationFlying: Coord/QHillsToBody Common: CommonData/SwooshWatermark Common: General/CellToMat Common: General/MatToCell Common: General/StringMatch Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/PltStyle Common: Quaternion/Mat2Q Common: Quaternion/QForm Common: Quaternion/QMult Common: Quaternion/QPose Math: Linear/Cross Math: Linear/Unit
Back to the FormationFlying Module page