Path: FormationFlying/Analysis
% Test the LPEccentric function. Provide the reference orbital elements, an initial relative state and initial true anomaly, a desired/final relative state and final true anomaly, and the number of samples to discretize over. Two validation methods are used. In the first, we propagate the initial state over nS samples, applying the control acceleration found by LPEccentric. In the second, we integrate the two inertial states, applying the same control acceleration, but in the ECI frame. We then transform back to the Hill's frame for comparison. -------------------------------------------------------------------------- Form: [xH_int,xH_lin,dVTot,eT,err] = TestLPEccentric( el0, xH0, nu0, xHF, nuF, nS, plotFlag ); -------------------------------------------------------------------------- ------ Inputs ------ el0 (6,1) Initial orbital elements [a, i, W, w, e, M] xH0 (6,1) Initial Hill's-frame state nu0 (1) Initial true anomaly xHF (6,1) Final/desired Hill's-frame state nuF (1) Final true anomaly nS (1) Number of samples to discretize over plotFlag (1) Create plots or not (0|1) ------- Outputs ------- xH_int (6,1) Hill's-frame state from integrating inertial states xH_lin (6,1) Hill's-frame state from propagating linear system dVTot (1) Total Delta-V for maneuver [m/s] eT (1) Time elapsed during call to LPEccentric [sec] err (6,1) State error at end of maneuver. Found by integrating the inertial states from t=0 and applying control, then comparing the final state with the target state. --------------------------------------------------------------------------
FormationFlying: Coord/GetHillsMats FormationFlying: Dynamics/FFIntegrate FormationFlying: EccDynamics/FFEccDH FormationFlying: EccDynamics/FFEccDiscreteHills FormationFlying: EccDynamics/FFEccGoals FormationFlying: EccDynamics/FFEccLinOrb FormationFlying: EccDynamics/FFEccProp FormationFlying: EccDynamics/FFEccRMat FormationFlying: EccDynamics/FFEccYExt EccDynamics: Derivatives/FFEccDDY EccDynamics: Derivatives/FFEccDY FormationFlying: LP/LPEccentric FormationFlying: Transformation/ECI2Hills FormationFlying: Transformation/Hills2ECI FormationFlying: Utility/NuDot FormationFlying: Visual/FFEccAnalyzeShape SC: BasicOrbit/CP2I SC: BasicOrbit/E2M SC: BasicOrbit/E2Nu SC: BasicOrbit/El2RV SC: BasicOrbit/M2E SC: BasicOrbit/M2EApp SC: BasicOrbit/M2EEl SC: BasicOrbit/M2EHy SC: BasicOrbit/M2Nu SC: BasicOrbit/M2NuPb SC: BasicOrbit/Nu2E SC: BasicOrbit/Nu2M SC: BasicOrbit/OrbRate SC: BasicOrbit/Period SC: BasicOrbit/RV2El Common: CommonData/SwooshWatermark Common: Control/C2DZOH Common: General/CellToMat Common: General/DispWithTitle Common: General/MatToCell Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/PltStyle Math: Analysis/Simplex Math: Analysis/Simplex2 Math: Integration/RK4TI Math: Linear/Cross Math: Linear/Dot Math: Linear/DupVect Math: Linear/InvP Math: Linear/Mag Math: Solvers/NewtRaph Math: Trigonometry/UnwrapPhase Math: Trigonometry/WrapPhase
Back to the FormationFlying Module page