PID controller, sort of