PD Control and Damping
Use derivative behavior to reduce overshoot.
Use derivative behavior to reduce overshoot.
In this lesson, you will:
Derivative response reacts to how error is changing. In FTC mechanism tuning, this often acts like damping that helps reduce overshoot and oscillation.
A mechanism with only P may rush past the target. D asks whether the mechanism is approaching too quickly and subtracts some output before it overshoots.
Start from a working P controller. Calculate error change over time or use velocity when appropriate. Add a small D term and graph before/after behavior.
PDController.javaJava
double derivative = (error - lastError) / dt; double output = kP * error + kD * derivative; lastError = error;
Derivative amplifies noise. If measurement is noisy, D can make output twitch. If loop time is inconsistent, derivative math gets worse.
Add a D term to the P lift controller and compare overshoot across three target moves.
Check your understanding before moving on.
0 of 2 answered