3.5.53 · D1Guidance, Navigation & Control (GNC)

Foundations — Powered descent guidance — G-FOLD algorithm (convex optimization)

3,684 words17 min readBack to topic

Before you can read the parent note, you must own every letter it writes. This page builds each one from a picture. Read top to bottom — each symbol leans on the one above it.


0. The stage: position, velocity, acceleration

Everything happens to a lander flying above a target. To talk about it we need three ideas that stack.

Look at the figure. The arrow has a shadow on the ground (how far sideways the lander is) and a height (how far up). To write both at once we split the arrow into pieces along three fixed directions — the axes.

Now, things move. Velocity is how fast position changes.

Stack the dot again: is acceleration — how fast the velocity is changing. Firing the engine changes velocity, so acceleration is where the engine's push shows up.

Recall What do

, , mean, and what sign is / ? Position (arrow to lander), velocity, acceleration — each dot is one time-derivative; above the pad, and on Mars (down = negative ). ::: Up is positive ; gravity carries the minus.


1. Magnitude: the double-bar

Look at the figure: the thrust arrow is the diagonal of a right triangle whose legs are the components and . The dashed legs meet at a right angle, and the arrow's length is the hypotenuse — Pythagoras in action. Notice the arrow could swing to any direction while keeping the same length; that "same length, any direction" is precisely what the double-bar captures.


2. Forces: thrust , gravity , mass


3. The rate of fuel loss: , , ,

Fuel leaves as exhaust. The faster the exhaust and the more of it, the harder the push.


4. The logarithm and the exponential

The parent's Step 1 will track the log of the mass instead of the mass itself. To follow it you first need what is and undoes.

Look at the figure: (lavender) and (mint) are mirror images across the dashed diagonal line. Feed a number into one curve, then into the other, and you land back where you started — that is what "exact inverse" looks like. Notice the mint curve lives only to the right of zero: it has no output for , the picture of the domain restriction .

Recall What does

undo, what is its domain, and why is it useful here? undoes and only accepts arguments ; and , converting the troublesome division into a plain linear term. ::: Logs turn ×/÷ into +/− (argument must be positive).


5. The new controls: and the slack

Here is the algebra, step by step, so you see why the trouble disappears. Start from Newton's law and divide every term by the mass :

On the left the two 's cancel, leaving just . On the right, is our new name , and cancels to :

Now watch the throttle limits ride through the same division. Start from the hardware band and divide all three parts by the positive number (dividing by a positive number keeps the signs pointing the same way):

But (dividing an arrow by a positive number scales its length by the same factor), so:

Finally hand the middle over to the slack. We set and put the hardware band on instead:

That is the transformed throttle box the parent uses. (If we dropped the floor, it would read simply .)


6. Convex vs. non-convex — the shape that decides everything

This is the heart of why the parent does all its gymnastics.

Recall Which parent constraint is non-convex, and why?

The thrust lower bound : it demands you stay outside a sphere, and "outside a sphere" fails the straight-line test. ::: Lower bound = non-convex hole.


7. The glide-slope cone and

The parent's last constraint keeps the lander above a safe funnel using a tangent. (Recall from Section 1 that bundles the two ground coordinates, so is the sideways distance — the length of the shadow.)

Look at the figure: the mint funnel is the set of allowed positions. Its walls make angle with the ground. At any height the funnel's radius is — so the allowed sideways room (coral segment) shrinks straight down to zero as the lander nears the pad, forcing a clean vertical touchdown. A lander at the red dot outside the funnel would be violating the constraint (it could fly into the ridge); the green dot inside is safe.


8. The heavier machinery (names you'll meet, in one picture each)

The parent drops three technical names. You don't need to master them here — just hold a one-line mental picture so they don't feel like magic later.

We treat all three as trusted black boxes on this foundations page; the parent and later deep-dives open them up.


Prerequisite map

Vectors and components r v

Magnitude double bar norm

Time derivative the dot

Sign convention up is plus z

Newton second law m vdot equals T plus mg

Fuel burn mdot equals minus alpha norm T

Logarithm z equals ln m

Divide by m gives a and slack Gamma

Convex versus non convex sets

Glide slope cone tan theta

G-FOLD convex program SOCP


Equipment checklist

Test yourself — you are ready for the parent note only if each reveal feels obvious.

What does mean in plain words?
The position is an arrow described by three numbers: two sideways coordinates and a height .
What is our sign convention, and what is on Mars?
Up is ; so above the pad, downward velocity is , and .
What does a dot over a letter mean?
The time-derivative — the instantaneous rate of change; two dots = rate of the rate (acceleration).
What does measure, and what does measure?
is the length of the full thrust arrow; is the length of just the ground-bundle — the sideways shadow distance.
What are and ?
The engine's weakest-while-lit and strongest thrust magnitudes; they pen into the band .
Why does mass appear as , and what sign is it?
Because fuel burns off so the mass shrinks over time; and always.
State the fuel burn law and how it differs from Tsiolkovsky.
is the instantaneous mass-flow rate; Tsiolkovsky is its integral over a whole burn.
How is defined for non-integer ?
As the unique smooth curve starting at whose growth rate always equals its own height — this fills in every fractional and negative exponent continuously.
Why substitute ?
It converts