CAN Talon SRX Speed Control

When we set the RPM to 1, the motor spins at 4000 RPM. When we set it to 2, the motor spins at -2000 RPM. When we set it to 3, the motor spins at 250 RPM. When we set it to 4, it goes full speed forward.

How do we fix it?

We have had good success following the CTR Talons SRX Software reference manual.

specifically the 12.4. Velocity Closed-Loop Walkthrough – starting on page 76.

Hope this helps!

If you can mount an encoder on the motor you can allow that to regulate the speed control, but otherwise all I can say is guess and test.

That’s peculiar enough that I’m going to suggest a thorough type check of all your variables. Are you perhaps sending variables of the wrong types to methods? Floats vs ints vs longs vs doubles can sometimes generate this weird sort of behavior. If you can’t find anything, post your code and I’m sure someone will help more specifically.