PID Control 1.0
Discrete time implementation of P, PI, PD, PID. Including derivative filter, integral clamping, feed-forward, gain scheduling in standard and parallel form.
Loading...
Searching...
No Matches
pid.h File Reference

Proportional-Integral-Derivative (PID) controller. More...

#include <cstdint>
#include "../utility/utility.h"
#include "../../src/pid/pid.tpp"
Include dependency graph for pid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  control_system::pid::PID< T >
 Discrete-time proportional-integral-derivative controller. More...

Namespaces

namespace  control_system
 Contains control-system algorithms and controllers.
namespace  control_system::pid
namespace  pid
 Contains proportional-integral-derivative controller implementations.

Detailed Description

Proportional-Integral-Derivative (PID) controller.

This file defines the control_system::pid::PID class, which implements a discrete-time PID controller.

The controller combines proportional, integral, and derivative components to generate a control output based on the error between a reference value and the measured value.

The controller maintains previous error and output values as internal state variables and applies a configurable maximum output limit.

The class is templated to support different numeric types such as float and double.

Template Parameters
TNumeric data type used for the controller calculations.
Author
Abhinay Kumar
Version
1.0.0
Date
2026-08-11

Definition in file pid.h.