PID speed control problem

Hi, I am new to Robotc. I am really confused on how to code PID speed control without using internal algorithm. May someone give a sample code? Thanks a lot.

I don’t believe ROBOTC includes an official sample program for PID. There is some old sample code that I created before joining Robomatter in this thread (the library is on github, there is a link in the thread). The example is for position control of a robot arm, it would need modification to work as a PID speed controller.