← 🛞 Engineering

🚗 Cruise Control PI Lab

Anti-windup clamp
Speed:
Error:
Throttle/brake:
Integral term:
FPS:
Speed vs. time
Drag — rotate · Scroll — zoom

🚗 Cruise Control: PI Controller and Integral Windup

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.

🔬 What It Demonstrates

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.

🎮 How to Use

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.

💡 Did You Know?

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.