Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Motor Twitch... (http://www.chiefdelphi.com/forums/showthread.php?t=142078)

johnny_Bet 01-18-2016 05:35 PM

Motor Twitch...
 
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 01-18-2016 05:41 PM

Re: Motor Twitch...
 
Quote:

Originally Posted by johnny_Bet (Post 1526146)
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 01-19-2016 01:39 PM

Re: Motor Twitch...
 
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/sh...=joystick+dead


All times are GMT -5. The time now is 09:13 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi