6-DOF powered descent guidance
Fuel-optimal landing guidance for a single-engine reusable rocket, solved with six-degree-of-freedom (6-DOF) successive convexification and tracked by time-varying LQR, landing within limits on 1,000 of 1,000 Monte Carlo runs.
[PRJ-01]Monte Carlo run 848 (largest initial position dispersion) replayed at 2× speed: flown trajectory colored by speed with every 2 s receding-horizon re-plan shown as a ghost path.
[PRJ-01] 3DSelf-contained Three.js replay of nominal and dispersed Monte Carlo flights, including run 848 (largest initial offset). Orbit, chase, and pad cameras with live HUD, throttle/gimbal plume, and re-plan ghost trajectories.
What I built
Results
[PRJ-01] Measured- MC landings
- 1000 / 1000
- Touchdown CEP95
- 0.94 m
- Median re-solve
- 127 ms
- Monte Carlo landings within touchdown limits (re-guidance + TVLQR, 1,000 runs)1000 / 1000 (95% CI 99.6–100.0%)
- Touchdown miss distance: CEP50 / CEP95 / worst0.44 m / 0.94 m / 1.30 m
- Touchdown vertical speed: median / worst (2.5 m/s limit)1.30 / 1.58 m/s
- Touchdown tilt: p99 / worst (5° limit)0.47° / 0.82°
- In-flight re-solve time: median / p99 / worst (1 s budget)127 / 307 / 397 ms (0 / 8,905 over budget)
- One-shot ablation without re-guidance (same 1,000 runs)983 / 1000, CEP95 1.49 m
- Peak in-flight tilt p99: aero vs vacuum guidance model (20° plan limit)24.1° vs 30.9°
- 3× dispersion stress sweep (300 runs): re-guidance vs one-shot91.7% vs 34.3%
- Open-loop propagation error of SCvx trajectory (4 scenarios)0.08–0.42 mm
- 6-DOF propellant above 3-DOF LCvx lower bound (4 scenarios)0.4–8.0%
- PTR iterations from 3-DOF warm start / mean full solve time10–19 iterations / 312 ms (28 ms/iter)
Architecture
-
3-DOF lossless convexification SOCP with final-time line search. Measures relaxation tightness on every solve (1 of 240 nodes > 1e-4, median gap 2e-7) and supplies the fuel lower bound and warm start.
-
6-DOF quaternion equations of motion with analytic Jacobians checked via complex-step differentiation, plus batched derivative-form First-Order-Hold (FOH) discretization without matrix inverses.
-
Penalized Trust Region (PTR) loop compiled once via CVXPY DPP (Clarabel backend) so each iteration only updates parameters. Unit scaling puts states at O(1) and soft exact-penalty path margins keep re-plans feasible.
-
12-state error-state TVLQR projected via quaternion tangent map Ξ(q) with hover regulator terminal cost, paired with receding-horizon re-guidance every 2 s over the fixed 1 s compute budget.
-
200 Hz RK4 truth plant with engine lag, gimbal rate limits, wind/gusts, dispersed mass/aero, and navigation bias and noise across 1,000-run campaigns, a 7,938-point divert envelope, and 3× stress sweeps.
Design decisions
-
Nondimensional length, time, and mass scaling brings position, velocity, mass, and thrust to O(1), keeping trust-region radii, virtual controls, and convergence checks well-conditioned.
-
Derivative-form FOH sensitivities avoid inverting state transition matrices across discretization intervals.
-
Soft exact-penalty guidance cones (zero penalty in every cold solve) keep re-plans feasible when disturbances push the vehicle slightly past a planned margin.
-
A trimmed terminal gate at 2 m altitude and 1 m/s descent decouples touchdown speed from altitude error.
-
Four-way ablation shows re-guidance removes the miss tail while nominal aerodynamics in the guidance model hold peak in-flight tilt near the planned 20° envelope.
Figures
6 plots and captures. Select any figure to view it at full resolution.
Limits
What the model assumes and what this work does not show.
Reproduce
Run the tests and regenerate every figure from the repository.
$ uv sync
$ make test
$ uv run pdg fly --scenario crossrange
$ make all