PID Control

How do you program PID control? A snip it of a code would be helpful but if not, i can manage.

Please search this forum before posting questions such as these.

PID has DOZENS of posts, including sample code, on this forum. Use the search box at the top of the page and also do a separate google search of something like “VEX + PID” or “VEX Forum PID” etc. Google search is usually better.

George (Jij) wrote a great guide years ago which you should read (it’s how I learned PID):

I second that – it’s an excellent guide … which I myself found by searching the VEX Forum.