Go to Post See, another reason for going--you can find out your chances of being thrown off the field for a safety violation! - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 08-02-2015, 12:47
robat-mentor robat-mentor is offline
Registered User
FRC #3953
 
Join Date: Jan 2013
Location: United States
Posts: 10
robat-mentor is an unknown quantity at this point
Mecanum drive question

We have setup the default mecanum cartesian drive and we are not getting the expected results.

All directions commanded work properly except left and right.

When we move the joystick to the left the robot rotates instead of sliding and the same applies to the joystick move to the right.

Also we had to reverse polarity on the right front and right rear motor wires to get forward and backwards to be correct.

Any help?
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2015, 13:36
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Re: Mecanum drive question

This is the first test I do every time I set up a new Mecanum system:

Put the robot on blocks so that the wheel can spin freely.

Command the robot to drive forward, all wheels should move forward in the same direction. Just as you would expect from tank drive.

Command the robot to rotate clockwise. the wheels on one side of the robot will rotate in the opposite direction of the other side. Again, just as you would expect from tank drive.

Command the robot to strafe. You should see the wheels on diagonals rotating in the same direction, and opposite of the other diagonal. That is the front left and rear right should rotate the same direction, and the front right and rear left should be rotating the same direction, but opposite of the other two.

Once this is working you can put it on the floor and it should drive correctly. If any of the joystick directions are backwards, invert them in your program.


Are you using the built in wpi implementation for Mecanum drive or did you write your own code?

Do you have your wheels installed in the correct locations? If you look at the top of each wheel, the axle for each roller should point in toward the robot.

With mecanum, it will not drive very straight without a gyroscope sensor. So you will need to constantly l provide a little rotation as you drive to keep the robot facing a particular direction. It's not hard but does take a little practice.

Last edited by dawonn : 08-02-2015 at 21:35. Reason: clarification.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2015, 13:45
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,113
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 question

Inverting the right side motors is typical.

Look closely at the order of motors when you create your RobotDrive. Make sure they match your actual robot: front left, rear left, front right, rear right. You might have swapped the rear left and front right.
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 14:05.

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