8000 GitHub - Arreba/PID: PID controller implementation written in C.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Arreba/PID

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
.gitattributes< 82D5 /div>
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Dynamic integrator clamping: https://e2e.ti.com/blogs_/b/industrial_strength/archive/2013/04/13/teaching-your-pi-controller-to-behave-part-vii

About

PID controller implementation written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%
0