New to PID help

It helps to learn PID incrementally, these resources are well worth reading. Copying code is alright until you need to fix it