Skip to content

Instantly share code, notes, and snippets.

View lucazpf's full-sized avatar
🎯
Focusing

Luca Scalvi lucazpf

🎯
Focusing
View GitHub Profile
@chaosmail
chaosmail / python-pid_controller
Last active September 26, 2022 13:13
Simple PID Controller
def pid_controller(y, yc, h=1, Ti=1, Td=1, Kp=1, u0=0, e0=0)
"""Calculate System Input using a PID Controller
Arguments:
y .. Measured Output of the System
yc .. Desired Output of the System
h .. Sampling Time
Kp .. Controller Gain Constant
Ti .. Controller Integration Constant
Td .. Controller Derivation Constant
@bradley219
bradley219 / .gitignore
Last active January 15, 2026 10:15
PID C++ implementation
.DS_Store