Measuring RPM from Flywheel for Controller Rumble.

Hi, I’m trying to measure the RPM on my flywheel, so when it hits the desired rpm for consistent shooting, and us not wasting our time trying to find when it has hit max speed, the V5 controller’s rumble motors could shake when it hits that speed. Currently the code makes the whole controller shake with the slightest movement (even manual movement of the flywheel), and I’m confused, because I’m using the shaft encoder’s RPM measure line of code instead of anything else, but it still doesn’t seem to work, as I’m not sure how to measure a specific RPM with the shaft encoder.

If you are using V5 there is a function that can return the exact RPM values of the motor. You don’t have to use an encoder. Can you post your code so that we can see it?