EDR C++ Potentiometer Program

Does anyone know how to program a potentiometer into a drive control?

Is this C++ as in VEXCode, RobotMesh, or PROS?

VexCode, i believe im not 100% sure