<< CL_man_lambert Trajectory and maneuvers CL_man_thrustDuration >>

CelestLab >> Trajectory and maneuvers > CL_man_lambert2

CL_man_lambert2

Lambert's problem

Calling Sequence

[v1,v2] = CL_man_lambert2(pos1,pos2,tf [,direction,m,leftbranch,mu])

Description

Parameters

pos1 :

Initial position vector [m] (3xN)

pos2 :

Final position vector [m] (3xN)

tf :

Time of flight from r1 to r2 [s] (1xN or 1x1)

direction :

(optional) 'pro' for prograde, 'retro' for retrograde (default is 'pro') (1x1)

m :

(optional) number of revolution (default is 0) (1x1)

leftbranch :

(optional) (boolean) when m > 0, chooses between left branch or right branch (default is %f) (1x1)

mu :

(optional) Gravitational constant (default is %CL_mu) [m^3/s^2]

v1 :

Initial velocity vector [m/s] (3xN)

v2 :

Final velocity vector [m/s] (3xN)

Authors

Bibliography

See also

Examples

dt = 1000; // seconds
kep1 = [7000.e3; 0.1; 1; 0; 0; 0];
kep2 = CL_ex_kepler(0, kep1, dt/86400);
[p1, v1] = CL_oe_kep2car(kep1);
[p2, v2] = CL_oe_kep2car(kep2);
[v1b, v2b] = CL_man_lambert2(p1, p2, dt);
CL_norm(v1-v1b) + CL_norm(v2-v2b)

Report an issue
<< CL_man_lambert Trajectory and maneuvers CL_man_thrustDuration >>