PID Drive control

Can someone send me some template code for a PID loop for a tank drive, i don’t know how to code PID.
(I use 4 motors turbo and have an external encoder on each side)

Hi Jonathan

Sorry, I missed this question. If you are still working on this I suggest you ask the same question in one of the community forums as you will get a much larger range of answers.