View Single Post
  #4   Spotlight this post!  
Unread 18-01-2015, 08:07
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote