Go to Post Cheap is always a good thing, unless you are building a robot. - Francis-134 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2011, 17:32
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Mecanum Drive System Issues

Here is the code we are using I have the begin in the upper left hand corner and the teleop is the rest of it. I have tried different combinations of the true/false constants to invert the motors and I can get the rotate to work when I change them to how (i think) they should be (one side inverted and the other not). But then the forward/reverse/diagonals/strafe don't work.

I checked the wiring (polarities and PWM's) and nothing was wrong there.
Attached Thumbnails
Click image for larger version

Name:	Drive.PNG
Views:	34
Size:	21.9 KB
ID:	10175  
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2011, 22:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Mecanum Drive System Issues

Quote:
Originally Posted by j.cole View Post
I checked the wiring (polarities and PWM's) and nothing was wrong there.
Prove it.

Which PWM channel do you have going to each motor? I can't be absolutely certain, but your code seems to have it this way:

PWM1: front left (inverted)
PWM2: front right (inverted)
PWM3: rear left (not inverted)
PWM4: rear right (not inverted)

It's rather odd to have both front motors inverted and neither rear motor inverted. One typically sees only the right motors inverted, or occasionally only the left ones. The other common situation is for none of them to be inverted and have the compensation occur in the wiring.

It still looks to me like you have your front left and rear right motor controls swapped.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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