Standard form discrete PID controller implementation using the incremental (velocity) algorithm for embedded systems in C
This package contains files (pid.h and pid.c) to implement a simple PID controller.
- Full PID implementation using the standard form (i.e. Kp, Ti, Td)
- Derivative kick attenuation via applying a low-pass filter to the error signal
- Control signal anti-windup
- Statically allocated memory
- Integrate pid.h and pid.c files into your project.
- Include the pid.h header file in your code like below.
#include "pid.h"- pid.h : This header file contains the definitions of the user API.
- pid.c : This source file contains the implementation of the PID.