We have 4 CIM motors connected to 4 Jaguars. We deployed the code to the robot, but the wheels of the robot moves automatically without the controller (xbox 360 controller) joystick being moved. What could be the cause of the problem?
two possible solutions.
- make sure the code is only for the control of the CIM’s and there are no lines accidentally interfering with the motors.
- make sure the joysticks on the controller are in their neutral position during the booting up process, because if they are not it could result in them not being zeroed properly
hope this helps!
That’s not the problem sadly… the direction function does not return to 0, it returns a random number.
Did you set up “dead zones” for the joysticks? If not, try that.
good luck
Posting your code could improve the quality of responses you are getting.