Hey, i have never done PID and i have heard its a great tool for autonomous so i was wondering if anyone can help me with a sample code or something and everything i need to know for it ?
Try the search tool on the forum. PID is a topic that has been covered extensively time after time.
Here is a link to a PID tutorial using Vexcode:
There are also this forum post you might want to look at:
You should also understand how PID loops work before trying to apply to your robot. Here is a great video series that should help you understand it: https://www.youtube.com/watch?v=wkfEZmsQqiA
try checking out this tutorial too: