CrossTrackDeltaV:
% Compute the DV to achieve a min. cross-track dist. at along-track crossing.
This is used to achieve a "safe ellipse". If the ellipse drifts in the
along-track direction, it will not collide with the origin (another SC)
because it will have some cross-track offset as it crosses the
along-track axis.
NOTE: This algorithm assumes that the current relative state is
ALREADY FOLLOWING A RELATIVE ELLIPSE in the orbital plane.
-------------------------------------------------------------------------------
Usage:
[dV,dVt,yA,yR] = CrossTrackDeltaV( xSLO, x0, aE, n, dMin, yAMin, timeLimited );
-------------------------------------------------------------------------------
------
Inputs
------
xSLO (1) Initial SLO-frame state on relative ellipse
x0 (1) Center of along-track motion [km]
aE (1) Semi-major axis of relative ellipse [km]
n (1) Mean orbit rate [rad/s]
dMin (1) Minimum separation distance (along-track) [km]
yAMin (1) Minimum separation distance (cross-track) [km]
timeLimited (1) Flag. Must the maneuver be applied right now?
-------
Outputs
-------
dV (1) Cross-track delta-v [km/s]
dVt (1) Time to apply delta-v, measured from xSLO time [MET]
yA (1) Cross-track offset at forward along-track axis crossing
yR (1) Cross-track offset at high radial axis crossing
-------------------------------------------------------------------------------
Children:
FormationFlying: SafeGuidance/YRMax