Modern cruise control is a feedback loop: a sensor reads the car's actual speed, compares it to the driver's target speed, and a controller decides how much throttle (or brake) to apply. This simulation implements a classic PI controller — proportional plus integral — driving a physically simulated car up and down a road whose grade you control directly.
Turn anti-windup off, set Ki high (around 2.0), and push the grade slider to +12% for a few seconds, then back to 0%. Watch the integral term climb off the chart and the car blow past its target speed once the hill ends — classic windup. Turn anti-windup back on and repeat: the overshoot almost disappears.
A 3D car drives along a road whose grade you control, held at a target speed by a live proportional-integral (PI) controller — tune the gains and watch it overshoot, settle, or wind up on a hill.
The proportional term reacts to present error, the integral term erases steady-state offset by accumulating past error, and on a steep hill the actuator saturates — causing integral windup unless an anti-windup clamp is engaged.
Set a target speed, adjust Kp and Ki, then drag the road grade to simulate a hill. Watch the dashboard gauges, throttle/integral bars, and the live speed-vs-time chart respond.
Most production cruise-control systems use anti-windup logic precisely because a saturated integrator, left unchecked, causes exactly the kind of overshoot you can trigger here by turning the clamp off.