Skip to content

Here is an implementation of a discrete PID in MATLAB

Notifications You must be signed in to change notification settings

SpPap/Discrete-PID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Discrete PID Controller

Here is an implementation of a discrete PID in MATLAB

Continuous time: $$u(t) = K_pe(t)+K_i\int_{0}^{t} e(\tau)d\tau+K_d\frac{de(t)}{dt}$$

For the integral term, 2 methods are being used for numerical integration (Trapezoidal rule and Composite Simpson's 1/3 rule). We have an advanced integral term handling based on whether k is even or odd.

The derivative term is implemented using backward Euler.

About

Here is an implementation of a discrete PID in MATLAB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages