EllipseDeltaV:

% Compute a delta-v that will change the current relative trajectory to a 
 2x1 ellipse centered about the TARGET. The delta-v should be applied at
 the same time that corresponds to the supplied state.

-------------------------------------------------------------------------------
   Form:
     dV = EllipseDeltaV( r0, v0, n, x0 );
---------------------------------------------------------------------------

   ------
   Inputs
   ------
   r0           (6,1)  Initial SLO-frame relative position [km]
   v0           (6,1)  Initial SLO-frame relative velocity [km/s]
   n             (1)   Mean orbit rate (rad/s)
   x0            (1)   Desired along-track offset of ellipse [km]

   -------
   Outputs
   -------
   dV           (3,1)  SLO-frame delta-v  [km/s]

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

Children:

FormationFlying: SafeGuidance/HillsEqnsSLO