Path: FormationFlying/SafeGuidance
% Compute attributes of along-track motion from relative state vector -------------------------------------------------------------------------- Form: [offset,drift,amp] = AlongTrackMotion(xSLO,n,varargin) -------------------------------------------------------------------------- ------ Inputs ------ xSLO (6,1) Relative position and velocity vector n (1,1) Mean orbit rate (rad/s) makePlot (1,1) Flag to make a plot of results ------- Outputs ------- offset (1,1) Along-track offset drift (1,1) Along-track drift rate amp (1,1) Amplitude of along-track oscillation --------------------------------------------------------------------------