3.5.5 · D3Guidance, Navigation & Control (GNC)

Worked examples — Gimbal lock — problem with Euler angles at θ = ±90°

2,009 words9 min readBack to topic

The parent note showed you why gimbal lock happens. This page makes you fluent by walking through every kind of situation that can arise — every sign of pitch, the zero case, the exact singularity, the near-singularity, a real aircraft, and an exam-style trap.

Before symbols: recall the three dials from the parent note.

  • (yaw) — turn left/right about the world vertical .
  • (pitch) — nose up/down about the tilted .
  • (roll) — barrel-roll about the nose .
  • — the physical body spin rates the gyroscopes actually measure (roll-rate, pitch-rate, yaw-rate), in radians per second.

We will keep using the two maps from Euler angles:

where , , . The matrix is the rate map: it converts real body spin into how fast your three dials must turn.


The scenario matrix

Cell What it tests Hit by
A. Generic / safe far from poles, all dials independent Ex 1
B. Zero / identity all angles — degenerate but harmless Ex 2
C. Exact lock matrix collapses to Ex 3
D. Exact lock matrix collapses to (opposite sign!) Ex 4
E. Near-lock rate spike amplifies tiny rates Ex 5
F. Non-unique inverse many → one orientation Ex 6
G. Real-world word problem aircraft loop crossing zenith Ex 7
H. Exam twist: quaternion escape show quaternion stays finite where Euler explodes Ex 8

Together these hit both signs of the pole, the zero case, a generic case, the limit as , uniqueness, a real vehicle, and the contrasting fix.


Example 1 — Cell A: a safe, generic orientation


Example 2 — Cell B: the zero / identity case


Example 3 — Cell C: exact lock at


Example 4 — Cell D: the OTHER pole,


Example 5 — Cell E: the near-lock rate spike (the limit)


Example 6 — Cell F: the inverse map is not unique


Example 7 — Cell G: real-world word problem (aircraft loop)


Example 8 — Cell H: exam twist — the quaternion stays finite

Recall Which cell does each example cover?

Generic safe case ::: Ex 1 (Cell A) Zero / identity ::: Ex 2 (Cell B) Exact lock collapse to ::: Ex 3 (Cell C) Exact lock collapse to ::: Ex 4 (Cell D) Near-lock rate spike / limit ::: Ex 5 (Cell E) Non-unique inverse ::: Ex 6 (Cell F) Real aircraft loop ::: Ex 7 (Cell G) Quaternion escape ::: Ex 8 (Cell H)


Connections

  • Hinglish version →
  • Euler angles — the representation these examples stress-test
  • Quaternions — the finite-rate escape in Ex 8
  • Rotation matrices SO(3) — the group whose we checked
  • Angular velocity kinematics — the rate map every example uses
  • Attitude determination and control — where the non-unique inverse (Ex 6) bites
  • Apollo Guidance Computer — historical work-around referenced in Ex 7
  • Singularities of coordinate charts — the deeper reason the chart, not the physics, fails