Skip to content

Packs / engineering-public

pid-step-response

simulate a PID controller on a first-order process and report overshoot, settling time and steady-state error

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-engineering-public

Install

logicpacks pack use engineering-public/pid-step-response
get_pack engineering-public/pid-step-response

The 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

  1. Identify the process gain K and time constant tau from a step test.
  2. Simulate candidate gains with pid.py.
  3. 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)

  1. python-stdlib: code/pid.py (no install).