2 releases

0.1.1 Apr 28, 2024
0.1.0 Apr 28, 2024

#535 in Embedded development

Download history 185/week @ 2024-04-22 101/week @ 2024-04-29 24/week @ 2024-05-06

310 downloads per month
Used in free-flight-stabilization

0BSD license

22KB
176 lines

PIDDIY

Philosophy

PIDDIY (Proportional-Integral-Derivative Do It Yourself) is designed to give users the tools to build their own PID controllers. The library allows manual control over the three primary components of PID systems:

  • Proportional (P): Adjusts the controller output proportionally to the error.
  • Integral (I): Accounts for past errors, integrating them over time to eliminate residual errors.
  • Derivative (D): Predicts future errors, focusing on the rate of change of the error.

It includes a few standard implementations for these calculations to address common control scenarios. Users requiring more complex behavior are encouraged to implement their own compute functions. The library intentionally omits features like output limits and automatic integral windup resolution to maintain simplicity and user-directed customization.

License

This library is licensed under the BSD Zero Clause License (0BSD) to make the code available in a public-domain-equivalent capacity, ensuring unrestricted use.

Dependencies

~155KB