PID disable need help

Currently we are using the default PID control to help our Auto be more consistent but we need to disable it or turn it off in driver control. Thanks in advance.

use “nMotorPIDSpeedCtrl” and assign a value of RegIdle. The code below was from a long thread about the builtin PID that ROBOTC has.

// Turn off PID
 if( vexRT Btn7U ] == 1 )
    nMotorPIDSpeedCtrl port2 ] = RegIdle;

// Turn on PID
if( vexRT Btn7D ] == 1 )
    nMotorPIDSpeedCtrl port2 ] = RegSpeed;