tgo26(rf−r) → the position-error term: closes the gap between where you are and the pad.
−tgo2(2v+vf) → the velocity-shaping term: bleeds your current velocity toward the desired touchdown velocity.
−g → the gravity-cancellation term, already inside the command so the engine never re-adds gravity.
As tgo→0 the 1/tgo2 factor in the position term blows up fastest → infinite commanded acceleration.
Recall Solution
Vertical speed vtd≤vtdmax (legs would crush).
Horizontal speed vx2+vy2≤vhmax (skid/tip).
Tilt angle θ≤θmax (thrust axis vs. vertical).
Angular rate ∣ω∣≤ωmax.
Position within pad radius R.
Recall Solution
Positive (upward). You are moving down fast and must reduce that downward speed, which needs a net upward acceleration. In our up-=+ convention that is a positive number.
acmd=326(−30)−32(2(−18)+(−1.5))−(−3.71)=96(−30)−32(−37.5)+3.71=−20+25+3.71=8.71m/s2.Engine produces exactlyT/m=8.71 m/s² upward. Do not add g again.
Recall Solution
Apply the formula per axis. 256=0.24, 52=0.4.
x:0.24(10)−0.4(2(4)+0)−0=2.4−3.2=−0.8 m/s².
z:0.24(−50)−0.4(2(−30)+(−1.5))−(−9.81)=−12+24.6+9.81=22.41 m/s².
acmd=(−0.8,0,22.41)m/s2.
The negative x command bleeds off the +4 m/s eastward drift; the large positive z brakes the fall.
Recall Solution
The velocity makes a right triangle: the "opposite" side is the horizontal speed ∣vx∣=6, the "adjacent" side (along the down direction) is ∣vz∣=30.
θv=arctan∣vz∣∣vx∣=arctan306=arctan(0.2)=11.31∘.
Guidance targets vf,x=0, so this angle must shrink to 0∘ by touchdown.
Velocity-induced lean from vertical:
arctanvtdvh=arctan1.80.5=arctan(0.2778)=15.52∘.
Total effective lean:
4∘+15.52∘=19.52∘≤25∘.Safe. Margin =25−19.52=5.48∘. Look at the figure: the combined arrow (tilt + drift) stays inside the leg-footprint cone.
Recall Solution
Tip criterion allows angular budget 25∘−4∘=21∘ for the velocity lean:
arctan1.8vh≤21∘⇒vh≤1.8tan(21∘)=1.8(0.3839)=0.691m/s.
The tip criterion caps vh at 0.69 m/s, stricter than the raw 1.0 m/s limit. The tip criterion binds first — you must slow drift below 0.69 m/s, not merely below 1.0.
Recall Solution
The position term scales as 1/tgo2. Halving tgoquadruples the term.
tgo=4: −15 m/s².
tgo=2: ×(4/2)2=×4⇒−60 m/s².
tgo=1: ×(4/1)2=×16⇒−240 m/s².
Growth is inverse-square in tgo — this is exactly why we must floor tgo or hand off to a hover phase before it explodes.
Work with the shaping acceleration s(τ)=c0+c1τ (we add −g at the end).
Integrate velocity:
v(τ)=v+c0τ+21c1τ2.
Integrate position:
r(τ)=r+vτ+21c0τ2+61c1τ3.
Let T=tgo. Boundary conditions:
\mathbf r_f-\mathbf r-\mathbf v T=\tfrac12\mathbf c_0 T^2+\tfrac16\mathbf c_1 T^3.$$
Call $\Delta\mathbf v=\mathbf v_f-\mathbf v$ and $\Delta\mathbf r=\mathbf r_f-\mathbf r-\mathbf v T$. Solving the $2\times2$ system:
$$\mathbf c_0=\frac{6\Delta\mathbf r}{T^2}-\frac{2\Delta\mathbf v}{T},\qquad
\mathbf c_1=\frac{-12\Delta\mathbf r}{T^3}+\frac{6\Delta\mathbf v}{T^2}.$$
The command applied now is $\mathbf a_{cmd}=\mathbf c_0-\mathbf g$. Expand $\mathbf c_0$:
$$\mathbf c_0=\frac{6(\mathbf r_f-\mathbf r-\mathbf v T)}{T^2}-\frac{2(\mathbf v_f-\mathbf v)}{T}
=\frac{6(\mathbf r_f-\mathbf r)}{T^2}-\frac{6\mathbf v}{T}-\frac{2\mathbf v_f}{T}+\frac{2\mathbf v}{T}.$$
Combine the $\mathbf v$ terms: $-\dfrac{6\mathbf v}{T}+\dfrac{2\mathbf v}{T}=-\dfrac{4\mathbf v}{T}$, so
$$\mathbf c_0=\frac{6(\mathbf r_f-\mathbf r)}{T^2}-\frac{4\mathbf v+2\mathbf v_f}{T}
=\frac{6}{T^2}(\mathbf r_f-\mathbf r)-\frac{2}{T}(2\mathbf v+\mathbf v_f).$$
Adding $-\mathbf g$ reproduces the boxed formula exactly. The **6** comes from integrating a cubic (the $1/6\,\tau^3$ position term), the **2** from the velocity mismatch. ✔Recall Solution
366=0.1667, 62=0.3333. rf−r=(0,0,−60).
x:0.1667(0)−0.3333(2(3)+0)−0=−0.3333(6)=−2.0 m/s².
z:0.1667(−60)−0.3333(2(−22)+(−1.5))−(−3.71)=−10−0.3333(−45.5)+3.71=−10+15.167+3.71=8.877 m/s².
acmd=(−2.0,0,8.877)m/s2.
Thrust tilt from vertical:
θT=arctanaz∣ax∣=arctan8.8772.0=arctan(0.2253)=12.70∘.
The engine leans 12.7∘ off vertical to kill the eastward drift, then rotates upright as ax→0.
Set tgo26(−60)=15:
tgo2360=15⇒tgo2=24⇒tgo=24=4.90s.
Below tgo≈4.9 s (with this residual error) the position term alone would demand >15 m/s², saturating the engine. Action: floor tgo, or hand off to a constant-velocity / gravity-turn "hover-then-drop" phase at low altitude, as flagged in the parent note's tgo→0 mistake. In practice you'd design the trajectory so the error is nearly zero by then, keeping demand bounded.
Recall Solution
(a)256=0.24, 52=0.4. rf−r=(−8,0,−45).
x: 0.24(−8)−0.4(2(2)+0)−0=−1.92−1.6=−3.52 m/s².
z: 0.24(−45)−0.4(2(−16)+(−1.5))−(−3.71)=−10.8−0.4(−33.5)+3.71=−10.8+13.4+3.71=6.31 m/s².
acmd=(−3.52,0,6.31)m/s2.(b) Drift is vx=+2 (east), command ax=−3.52 (west) → opposes drift ✔. az=+6.31 is upward → braking ✔. Guidance is pointed correctly.
(c) Velocity lean =arctan1.70.6=arctan(0.3529)=19.44∘. Total =5∘+19.44∘=24.44∘.
24.44∘>22∘⇒FAILS the tip criterion.
Even though each raw limit might pass individually, the coupled lean exceeds the tip cone — the lander would topple. GNC must trim vh further or reduce tilt before contact.
Recall Solution
(i) PDG produces the higher-altitude braking trajectory that hands off to this terminal law near the pad.
(ii) Proportional Navigation is the position-only cousin (great for intercepts) — terminal descent extends it to a two-point (position and velocity) problem.
(iii) Time-to-go Estimation supplies the tgo that every term here divides by; a bad tgo corrupts the whole command.
(iv) Convex Optimization Landing solves the same soft-landing boundary problem but with thrust bounds and glide-slope constraints enforced rigorously — the closed-form law here is the unconstrained special case.
(v) Attitude Control & Inner Loop is the fast loop that actually rotates the body so the thrust axis realizes the direction of acmd that this outer loop commands.
Recall Final self-check (cover the answers)
Why does the position term scale as 1/tgo2? ::: Because position is a double integral of acceleration; matching it over time tgo divides by tgo2.
Which coefficients come from the linear-shaping derivation and where? ::: 6 (from the cubic 61τ3 position integral) and 2 (from the velocity mismatch).
What single quantity, if mis-estimated, corrupts every term of the command? ::: tgo, the time-to-go.
When two limits both pass but the lander still tips, what did you forget? ::: The coupled tip criterion θ+arctan(vh/vtd)≤θtip.