Skip to main content

ZeqPID

PID controller tuning with HulyaPulse sampling. Auto-tune via Ziegler-Nichols on Zeqond timestep, bode plot analysis, stability margin computation.

EndpointPOST /api/robotics/pid
Authapi-key
Rate limit30/min
Categoryrobotics

Parameters

NameTypeRequiredDescription
plantModelobjectYesTransfer function coefficients { num, den }.
tuningMethodstringNo'ziegler-nichols', 'cohen-coon', 'auto'.
setpointnumberNoDesired setpoint value.

Returns

{ Kp, Ki, Kd, stepResponse, overshoot_pct, settlingTime_s, phaseMargin_deg, zeqond }

Example

curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"plantModel": {},
"tuningMethod": "auto",
"setpoint": 1
}' \
"https://zeqsdk.com/api/robotics/pid"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-pid.