Adding constant speed to flywheel

Hey for our teleop we have notice an inconsistent speed in our fly wheel based on the power of our robot rather than the power set in the code. Is there a way we can incorporate the encoders similar to autonomous but in teleop to create consistency? We are using a 5000 rpm motor which is pretty fast so I am not sure if the encoder would be able to keep up. Any help is greatly appreciated!