Tunes a PID controller.