|
Re: Motor Control issues
Those are good signs.
When you press the joystick forward, does the LED on the motor controller start to blink? Does the blink rate correspond to the power being requested? If not, I'd check the code to see what value is being sent to the motor controller. It should be between -1 and 1 inclusive. Also, how often is it being sent? If it is sent and the code then spends a long time doing something else, the RobotDrive Safety mechanism will set the motors back to 0 after 100ms. From your description, it sounds like the first issue.
One other thing to check is that the PWM cables look "right", black on the outside of the roboRIO and built correctly with the same colors in the same position on both ends.
Greg McKaskle
|