TestFFEccLinOrb:

Path: FormationFlying/Analysis

% Test the FFEccLinOrb function. 
 An initial reference state in the ECI frame is provided, along with an initial
 relative state in Hill's frame.

 First, the relative state is propagated one time-step dT using FFEccLinOrb, 
 with the given acceleration in Hill's frame applied. 

 Next, we integrate the reference and secondary states in the ECI frame,
 applying the given accleration (now transformed to ECI). We then
 transform the two resulting ECI states back to the Hill's frame and
 compare.

--------------------------------------------------------------------------
   Form:
   [xH_int,xH_lin] = TestFFEccLinOrb( x0, xH0, dT, aH );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x0              (6,1)  ECI position and velocity of reference 
                          [km; km/s]
   xH0             (6,1)  Hill's-frame position and velocity of relative sat
                          [km; km/s]
   dT               (1)   Time-step to integrate over [sec]
   aH              (3,1)  Acceleration to be applied (in Hill's frame)
                          [km/s/s]

   -------
   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

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

Children:

FormationFlying: Coord/GetHillsMats
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: 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/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: Integration/RK4TI
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Mag
Math: Solvers/NewtRaph
Math: Trigonometry/UnwrapPhase
Math: Trigonometry/WrapPhase

Back to the FormationFlying Module page