View Full Version : Motor Twitch...
johnny_Bet
18-01-2016, 17:35
Hello people of Chief Delphi! I'm the programmer for team 4643. We are experiencing difficulties with twitching motors.:eek: When code is disabled the motors don't twitch, leading me to conclude that it's a programming issue. I will be putting my code on github soon as well as a link to the repository but I can't right this second. Any help is appreciated!
Kevin Sevcik
18-01-2016, 17:41
Hello people of Chief Delphi! I'm the programmer for team 4643. We are experiencing difficulties with twitching motors.:eek: When code is disabled the motors don't twitch, leading me to conclude that it's a programming issue. I will be putting my code on github soon as well as a link to the repository but I can't right this second. Any help is appreciated!Are you controlling your motors via PWM or CAN? Poorly wired robots can occasionally generate or pick up electrical noise that can make PWM controlled motors twitch.
If it's not electrical, then the next most popular option is commanding the motor multiple times in a control loop. As soon as you call motor->Set(x), the output is set. Calling motor-Set(0) later will largely insure that the motor won't move much since the 0 will be active longer, but it could still twitch from the momentary setting to an actual value.
CryptoStorm
19-01-2016, 13:39
what are you using for your user input? You may need to add a deadband for your neutral input.
here are a couple ways:
http://www.chiefdelphi.com/forums/showthread.php?t=113423&highlight=joystick+dead
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.