Simply PID is a very simple PID controller implementation in Java. It is MIT licensed: it can be included in any project with no restriction.
To get started, simply add the SimplyPID.java Java source file to your project.
An example is included: SimplyPIDExample.
This is the basic usage:
- Construct the PID object with a Kp, Ki, Kd and a set point.
- Call the
getOutputmethod to compute the PID output. This is usually performed at a steady rate. - At any time, you can change some parameters: Kp, Ki, Kd, the set point or minimum/maximum output bounds.
The methods are all described in the source file using the standard Javadoc format.