ROBOTC has PID to control your flywheel

In motors & sensors setup, select the PID tab.
pid_1.jpg

This shows the motor port you have enabled PID for.

Click on more to show default settings, they are different depending on motor type and which port (with or without MC29) they are connected to.
pid_2.jpg

Double click on either your specific port or a default setting to edit.
pid_3.jpg