Philip Salmony b871f94ebb Update PID_Test.c
2020-06-26 13:55:58 +02:00
2020-05-22 14:28:43 +02:00
2020-06-26 13:53:11 +02:00
2020-06-26 13:55:58 +02:00
2020-06-18 12:32:17 +02:00

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.

Description
PID controller implementation written in C.
Readme MIT 4.3 MiB
Languages
C 100%