SkillAgentSearch skills...

PID

PID controller implementation written in C.

Install / Use

/learn @pms67/PID
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PID

PID controller implementation written in C.

Note on 'derivative-on-measurement': Since the 'error signal' effectively going into the differentiator does not depend on the setpoint: e[n] = 0 - measurement, and therefore (e[n] - e[n - 1]) = (0 - measurement) - (0 - prevMeasurement) = -Kd * (measurement - prevMeasurement). (Note the minus sign compared to derivative-on-error!) I've included the minus sign in the code, so gains will have the effect as normal.

View on GitHub
GitHub Stars899
CategoryDevelopment
Updated2d ago
Forks255

Languages

C

Security Score

95/100

Audited on Mar 27, 2026

No findings