Lambert's problem
[v1,v2] = CL_man_lambert2(pos1,pos2,tf [,direction,m,leftbranch,mu])
Computes the velocity vectors v1 and v2, given the position vectors r1 and r2, the time of flight tf, and the direction of motion direction.
Set direction to 'pro' for a prograde orbit. That is a counter-clockwise rotation around the Z axis. (this is the prograde direction for the solar system)
Set direction to 'retro' for a retrograde orbit. That is a clockwise rotation around the Z axis. (this is the retrograde direction for the solar system)
The number of revolutions m can optionaly be set to a value superior to 0, and in that case there are two solutions which can be selected using leftbranch
Initial position vector [m] (3xN)
Final position vector [m] (3xN)
Time of flight from r1 to r2 [s] (1xN or 1x1)
(optional) 'pro' for prograde, 'retro' for retrograde (default is 'pro') (1x1)
(optional) number of revolution (default is 0) (1x1)
(optional) (boolean) when m > 0, chooses between left branch or right branch (default is %f) (1x1)
(optional) Gravitational constant (default is %CL_mu) [m^3/s^2]
Initial velocity vector [m/s] (3xN)
Final velocity vector [m/s] (3xN)
CNES - DCT/SB
1) Izzo, D. ESA Advanced Concepts team. Code used available in MGA.M, on http://www.esa.int/gsp/ACT/inf/op/globopt.htm. Last retreived Nov, 2009.