Packs / engineering-public
pid-step-response
simulate a PID controller on a first-order process and report overshoot, settling time and steady-state error
Install
logicpacks pack use engineering-public/pid-step-responseget_pack engineering-public/pid-step-responseThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 2 in
outcome/checks.yaml - Code:
pid.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Simulate a PID controller on a first-order process and report overshoot, settling time and steady-state error.
Steps
- Identify the process gain K and time constant tau from a step test.
- Simulate candidate gains with pid.py.
- Apply the best gains on the real system with output limits and a manual-override ready.
Edge cases
- Dead time is not modelled; add a delay for real thermal/flow processes.
- Integral windup when the actuator saturates.
Don'ts
- Don't tune live on equipment that can hurt someone.
Routes (free first)
python-stdlib:code/pid.py(no install).