This package provides a simple implementation of a Proportional-Integral-Derivative (PID) controller.
To install the PID controller package, run the following command: pip install pid
The PID controller package has the following dependencies:
- Python 3.6 or higher
- NumPy
To use the PID controller, import the PID class from the pid package and create a new instance with the desired parameters:
from pid import PID
# Create a new PID instance with the desired parameters
pid = PID(Kp, Ki, Kd, setpoint)
# Update the PID with the current process value and get the control output
output = pid.update(process_value)If you would like to contribute to the PID controller package, please fork the repository and submit a pull request. Before submitting a pull request, please ensure that your changes pass the unit tests and adhere to the PEP 8 style guide.
The PID controller package is licensed under the MIT License. See the LICENSE file for more information.
This README includes installation instructions, a list of dependencies, usage examples, contribution guidelines, and license information. You can customize the README further by adding more sections or modifying the existing ones.