Path: Orbit/OrbitControl
% Use Lambert with optimization of start and transfer time Uses fmins/fminsearch. This routine checks both direct and retrograde orbit types. This is a local minimum and does not exhaustively search specific ranges of start and tranfer time, only in the vicinity of the initial guess. -------------------------------------------------------------------------- Form: [dV, tOptimal, elT] = LambertOpt( r1, v1, r2, v2, dT, mu ) -------------------------------------------------------------------------- ------ Inputs ------ r1 (3,1) Initial position vector v1 (3,1) Initial velocity r2 (3,1) Target position vector at current time v2 (3,1) Target velocity dT (1,2) Ideal start and maximum transfer time to reach target mu (1,1) Gravitational parameter ------- Outputs ------- dV (:) Delta-V to apply at start time .a (3,1) First delta-V (km/s) .b (3,1) Second delta-V (km/s) .total (1,1) Total delta-V tOptimal (1,2) Optimal start and transfer time elT (1,:) Elements of the transfer trajectory -------------------------------------------------------------------------- See also DVTarget --------------------------------------------------------------------------
Orbit: OrbitControl/DVTarget Orbit: RHSOrbit/FOrb Math: Integration/RK45
Back to the Orbit Module page