TestLPCircular:

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] = TestLPCircular( el0, xH0, xHF, dur, nS, plotFlag )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   el0             (6,1)  Initial orbital elements [a, i, W, w, e, M]
   xH0             (6,1)  Initial Hill's-frame state
   xHF             (6,1)  Final/desired Hill's-frame state
   dur              (1)   Maneuver duration [sec]
   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.

--------------------------------------------------------------------------

Children:

FormationFlying: Coord/CirclePhase
FormationFlying: Coord/GetHillsMats
FormationFlying: Dynamics/DiscreteHills
FormationFlying: Dynamics/FFIntegrate
FormationFlying: Dynamics/HillsEqns
FormationFlying: LP/LPCircular
FormationFlying: Transformation/ECI2Hills
FormationFlying: Transformation/Goals2Hills
FormationFlying: Transformation/Hills2ECI
Orbit: OrbitCoord/El2Alfriend
Orbit: RHSOrbit/LinOrb
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: Trigonometry/WrapPhase

Back to the FormationFlying Module page