Thread: Twitchy Motors
View Single Post
  #51   Spotlight this post!  
Unread 14-02-2016, 13:13
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: Twitchy Motors

Quote:
Originally Posted by hwu24110 View Post
Both sides twitch. I removed all but one PWM for each talon and each talon individually twitches.

I set it to autonomous and found it didn't twitch. I set each motor value to 0 and found it still didn't twitch. To make sure I coded it right, I set one side to a value of 1 and it moved constantly at full speed while the other side didn't move at all.

It only twitches when enabled in TeloOp.
It seems that your hardware is probably Okay. What you have posted above makes me think that it is the VALUES that you are sending to the motor controllers that may be the problem. Can you log the values sent to the motor controller or display them on your driver station?

Do you have any dead-band in your software so that the joysticks must move a significant amount before the system responds? I did not notice any mention of dead-band in this thread yet. In Auto-mode, dead-band is not an issue since the software should be ignoring your joysticks. Perhaps set your dead-band to some large value to see what effect it has.