python 2.7
dependency: pygame
This is an example of using a PID controller to make a circle follow the mouse around in a pygame window. You can adjust the responsiveness of the controller by editing the Kp, Ki, Kd parameters in the get_u method of the PIDController class in the PID.py file
To run the program the command line, just enter:
python main.py