PositionDeltaV:

% Compute delta-v required to reach a target position, given pos. and vel.
 Note: do not supply a time of t = 2*pi/n, as it results in a singularity!

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

   ------
   Inputs
   ------
   r0    (3,1)  initial relative position Hills
   v0    (3,1)  initial relative velocity Hills
   rDes  (3,1)  desired relative position Hills
   n     (1,1)  mean orbit rate
   t     (1,1)  time span from now until desired position

   -------
   Outputs
   -------
   dV   (3,1)   required delta-V

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

Children:

FormationFlying: Dynamics/HillsEqns