3.5.5 · D1Guidance, Navigation & Control (GNC)

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

2,580 words12 min readBack to topic

This is the ground floor for the parent topic. We assume you have never seen a rotation matrix, a sine, or an angular rate. We earn each one.


1. What is an orientation? (the thing we are describing)

Picture a little set of three arrows glued to the object: one out the nose, one out the right wing, one out the belly. Rotating the object rotates that trio of arrows. The whole subject is: how do we write down where those three arrows point?

Why we need it: Everything in the parent note — Euler angles, gimbal lock, quaternions — is a competing language for naming this one thing: an orientation. Fix the object; only the description differs.


2. Axes and the right-hand rule

The picture below shows the right-handed trio and the sense of a positive turn about (which sweeps toward ).

Why we need it: The parent's three angles (yaw, pitch, roll) are each a rotation about one of these axes. Without a fixed right-handed frame and positive sense, "" would be ambiguous.


3. Angle , and why and appear

An angle measures how much you turn — a fraction of a full circle. We write angles with Greek letters: (alpha), (phi), (theta), (psi). They are just "amount of turn."

Read these key values straight off the picture:

Why we need it: In the parent, every rotation matrix is filled with and of the three angles. The blow-up term explodes precisely because , and dividing by zero is forbidden.

We abbreviate, exactly as the parent does:


4. Tangent and — steepness, and why it runs off to infinity

Watch what happens as climbs toward : "how far up" () grows to while "how far across" () shrinks to . A finite number divided by a shrinking number becomes enormous:

Why we need it: The parent's rate matrix contains . As pitch approaches , (and its cousin ) run away to infinity — that is the mathematical face of gimbal lock, not a physical jam.


5. Vectors and matrices — the machine that rotates arrows

The rule for a times a : each output row is "multiply matching entries and add up."

5a. WHERE the pattern comes from

Let us derive a rotation matrix instead of quoting it. Take a turn by angle about the axis. A turn about leaves the height (the coordinate) untouched and only stirs the plane — so we just need to know where the two flat arrows go.

Using Section 3's circle picture: an arrow at angle turned by lands at ; an arrow at turned by lands at . So:

  • old arrow — this is column 1.
  • old arrow — this is column 2.
  • old arrow — unchanged, column 3.

Stacking those columns gives the general -rotation:

Why we need it: Rotation matrices SO(3) are the group the parent parametrizes. The single equation is "do three turns in a row," because multiplying matrices means "apply one rotation, then the next."


6. The three named angles: yaw , pitch , roll

Why the middle one is special: pitch sits between yaw and roll. It is the turn that tilts the roll axis away from the yaw axis. If pitch reaches , the roll axis lands right on top of the yaw axis — and that is the whole story of the parent note.


7. Body rates , the dot notation, and the conversion matrix

Here is the conversion matrix in full (the same one the parent uses), so nothing is hidden:

Why we need it: GNC systems (Attitude determination and control) continuously read and integrate them into angles through exactly this matrix. The disaster is not in the static angles but in this rate conversion diverging.


8. Singularity — a hole in the map, not in the world

Gimbal lock is exactly this: at the Euler-angle map has a hole, but the physical object rotates freely. The fix is to switch to a map with no holes — Quaternions.


How these feed the topic

Orientation - which way it faces

Axes x y z right-handed

Angle - amount of turn

cos and sin on the circle

tan = sin over cos - blows up at 90

Rotation matrix - columns are turned axes

Yaw pitch roll = three matrix turns

Body rates p q r and the dot

Conversion matrix has 1 over cos theta

Gimbal lock at pitch = 90

Singularity - hole in the map

Fix - quaternions


Equipment checklist

An orientation vs a position — what is the difference?
Orientation is which way the object faces; position is where it sits. Gimbal lock is about orientation only.
Which way do , , point, and what makes the frame right-handed?
forward, left, up; right-handed means fingers sweeping point the thumb along (i.e. ).
What does the right-hand rule tell you about rotations?
Thumb along the positive axis, curling fingers give the positive direction of rotation about it.
What are and geometrically?
The horizontal ("across") and vertical ("up") coordinates of a point turned by on the unit circle.
What is , and why does it matter here?
; dividing by it (as in ) causes the gimbal-lock blow-up.
Why does as ?
Because and : a finite top over a vanishing bottom explodes.
What do the columns of a rotation matrix represent?
The new positions of the old axis arrows after the turn — which is why the entries are /.
Why does carry on the diagonal and above, below?
Diagonal = how much of each axis stays; off-diagonal = how much leaks into the perpendicular axis; the is above because is the opposite sense to 's leak toward .
Which of yaw/pitch/roll is the "middle" rotation and about which axis?
Pitch , about the axis — it tilts the roll axis relative to the yaw axis.
Write the body-to-Euler conversion term that blows up, and say when.
The (and ) entries blow up as because .
What is a coordinate singularity?
A spot where the description breaks (infinities/ambiguity) though the physical object is fine — like the North Pole for longitude.

Connections

  • Euler angles — the three-angle description built from these pieces
  • Rotation matrices SO(3) — the machine that turns arrows
  • Angular velocity kinematics — where body rates become angle rates
  • Quaternions — the hole-free alternative map
  • Singularities of coordinate charts — the general idea gimbal lock is an instance of
  • Attitude determination and control — where this all runs in real GNC