3.5.39 · D1Guidance, Navigation & Control (GNC)

Foundations — PID tuning — Ziegler-Nichols, loop shaping

2,610 words12 min readBack to topic

This page assumes you know nothing. Every symbol the parent note used is unpacked here, in the order that lets each one lean on the last.


1. The feedback loop — the picture everything lives in

Before any symbol, look at the loop. A machine we want to control is called the plant. We tell it where to go; it reports where it actually is; we compare; we correct. Round and round.

Figure — PID tuning — Ziegler-Nichols, loop shaping

The little after each letter means "this is a value that changes with time ." At we start; as seconds tick by, each of these numbers moves.


2. The three pieces of information hiding in the error

The controller only ever sees the error signal . But that one wiggling line secretly contains three different stories, and the letters P, I, D are just names for reading each story.

Figure — PID tuning — Ziegler-Nichols, loop shaping

Now the three tools. Each is a piece of maths chosen to answer exactly one of those questions.

Proportional — "react to the present height"

Integral — "add up the past"

Derivative — "read the slope, predict the future"


3. The gains — the three tuning knobs

Why "tuning" exists at all: too much → wobble; too much → sluggish overshoot; too much → jittery from noise. Choosing the trio is the entire subject of the parent note.


4. The Laplace domain — why appears everywhere

The parent note suddenly writes . Where did go, and what is ?


5. Size and angle of a wave — magnitude and phase

When we plug , the result is a complex number. It has two readable parts, and the entire loop-shaping method lives on these two.

Figure — PID tuning — Ziegler-Nichols, loop shaping

6. The special frequencies and margins

Now the last cluster of symbols the parent uses.


7. How the foundations feed the topic

The prerequisite map below is drawn as a real figure — colour-coded by which of the three "stories" each idea belongs to — so you can see the dependency flow rather than read it.

Figure — PID tuning — Ziegler-Nichols, loop shaping

Read it bottom-to-top: the raw loop signals feed the error; the error splits into the present/past/future pieces; those attach to gains and combine into the control law; the control law is carried into the -domain, read off as magnitude and phase, and finally distilled into the margins that ZN and loop-shaping tune.


Equipment checklist

Hide the right side and test yourself before moving on.

What does mean and what is its formula?
The error, — where we want to be minus where we are.
What problem does pure proportional control leave unsolved?
A leftover steady-state offset (it needs a non-zero error to keep pushing), and it can oscillate if is too big.
What is the picture of the integral ?
The accumulated shaded area under the error curve from start to now.
What does the derivative represent visually?
The slope (steepness) of the error curve at the present instant.
Which knob scales the past, and how do you undo integration in the -domain?
scales the past; integrating becomes dividing by .
Write the defining integral of the Laplace transform.
, valid on its region of convergence.
Why do we replace with ?
Laplace turns calculus into algebra — integrate ⇒ ÷, differentiate ⇒ ×.
What are and ?
, the imaginary unit; is angular frequency in rad/s, with .
Why can't plain give the phase, and what fixes it?
It collapses opposite quadrants ( only); uses both signs for the full range.
What do magnitude and phase of tell you?
Magnitude = size change of the wave; phase = timing shift in degrees.
Why is phase with magnitude the instability edge?
The wave returns flipped and full-size, so feedback reinforces it forever.
Define phase margin.
, the spare lag before instability; aim .
What are and ?
Gain at sustained oscillation, and the period of that oscillation.
The letter has two meanings on this page — what are they?
= open-loop transfer function (§4); = dead-time delay in seconds in the FOPDT model (§6).