PID shooting code