Debugging the PID controller