Path: Interplanetary/Mechanics
% Helps design patched conic trajectories.
Provide a demo in the Earth-Moon system.
--------------------------------------------------------------------------
Form:
PatchedConicPlanner; % demo
[vInf, b, el, r0] = PatchedConicPlanner( planet, r, v, t, muC, pPF )
--------------------------------------------------------------------------
------
Inputs
------
planet (1,:) Planet data structure
.mu (1,1) Gravitational parameter
.radius (1,1) Planet radius
.name (1,:) Planet name
r (3,:) Spacecraft position
v (3,:) Spacecraft velocity
t (1,:) Corresponding time vector
muC (1,1) Gravitational constant for the central body
pPF (1,1) Patch point fraction of sphere of influence
-------
Outputs
-------
vInf (1,1) Velocity at infinity for the planet centric hyperbola
b (1,1) Impact parameter
el (1,6) Hyperbola elements
r0 (1,1) Periapsis
--------------------------------------------------------------------------