Path: LunarMissions/LunarLanding
% Equality constraints for the landing for a 2D flat planet problem.
The constraint is the terminal altitude and velocities. They must
be zero. The function integrates the trajectory to find the values.
--------------------------------------------------------------------------
Form:
[cIn, cEq, s, t] = LandingConst3D( x, d )
--------------------------------------------------------------------------
------
Inputs
------
x (:,1) [beta;alpha;thrust;dT]
d (.) Data structure describing spacecraft model
.timeOpt (1,1) Variable dT if true, otherwise constant
-------
Outputs
-------
cIn (1,1) Inequality contraints, empty
cEq (5,1) Equality constraints, [altitude;y;x velocity;y velocity;z velocity]
s (:,1) Final state
t (1,:) Corresponding times
--------------------------------------------------------------------------
See also: RHSPlanet3DPFFrame
--------------------------------------------------------------------------
LunarMissions: LunarLanding/RHSPlanet3D Math: Integration/RK4 Math: Linear/Mag
Back to the LunarMissions Module page