u = Kp·e + Ki·∫e + Kd·ė

Input proportional, integral, derivative gains and error signal, compute PID controller output in real time for robot closed-loop control parameter debugging.

📐 計算公式
PID 離散單步輸出(本頁程式碼口徑):u=Kp×e+Ki×∫e+Kd×(e−eₚ)÷Δt(e 當前誤差、∫e 誤差積分、eₚ 上次誤差,微分離散化為相鄰誤差差分÷取樣時間 Δt s);三項各自分解輸出。校驗:Kp、Ki、Kd、e、∫e、eₚ、Δt 七項空值即提示並中止。判據:無固定分級,比例項即時糾偏、積分項消除穩態誤差、微分項抑制超調。

比例-積分-微分控制律輸出。

📌 計算說明
  • u = Kp·e + Ki·∫e + Kd·ė。
  • 積分項消除穩態誤差。