Motor Speed Definition Not Working

We have defined a motor speed for our talons controlling our lift motors (it is set to 1.0). How it is supposed to work is that when we press a button on our joystick, the motors will go at the speed we tell it too, the problem being that it doesn’t. It gives a speed closer to .3 or .4. However, when we hook it up to a battery alone it goes at a speed of 1.0, or when we mess with our wiring so our drivetrain joysticks control those motors (this also puts the motors at 1.0). What could be causing this? Has anyone else dealt with this?

Could you post your code for detecting if the button is pressed, setting the motor’s speed, and where you are defining your motors?

Also be sure that you are declaring the correct model of speed controller; jaguars have a different PWM range than Talons and Victors.

Sounds odd. Post your code here using code tags.


code goes here

Alright turns out it was something completely different. Thanks for the replies!