Go to Post ...from my experience, it is really fun to play defense really well. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 02-03-2015, 08:45
bacarpenter bacarpenter is offline
Lead programmer (2 years)
AKA: Baylee Carpenter
FRC #2197 (Las Pumas)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Indiana
Posts: 19
bacarpenter is an unknown quantity at this point
Exclamation Mecanum wheels not strafing correctly

I've been working on the mecanum drive programming, I got the wheels to spin in the correct direction and all the motor controllers are hooked up correctly, but every time I try to strafe on the ground instead of going horizontally it'll move diagonally or rotate. Has anyone else had this problem and know how to help?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2015, 09:11
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 544
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Mecanum wheels not strafing correctly

Do the wheels appear to be going at somewhat close to the same speed? If you have encoders, checking this is easier.

If you are using Talons, have you calibrated them?

Are you sure that the wheels have been installed correctly? The axles on the rollers should form an X, not an O.
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2015, 09:38
DarkRune DarkRune is offline
Registered User
AKA: Dylan Baker-Flynn
FRC #4159 (CardinalBotics)
Team Role: Driver
 
Join Date: Aug 2014
Rookie Year: 2012
Location: San Francisco
Posts: 100
DarkRune is a jewel in the roughDarkRune is a jewel in the roughDarkRune is a jewel in the rough
Re: Mecanum wheels not strafing correctly

Sounds like your problem may not be the programming but the wheels. When we first installed our wheels we had the same problem. The axles on the wheels should line up like this:
\-----/

/-----\
Reply With Quote
  #4   Spotlight this post!  
Unread 02-03-2015, 14:57
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 wheels not strafing correctly

If the problem were only the wheels, it would drive forward and strafe okay but fail to rotate well.

The trouble with mecanum drive is that there are so many places to get things reversed. A miswired motors or wrongly-mounted wheels or swapped PWMs or mismatched program definitions will cause very confusing results. The only reasonably way to get it to work properly is to make sure to keep the hardware and software in perfect synchronization from the beginning. Once it's messed up, you have to focus on one motor at a time and verify that it moves when it should and in the direction it should. Do that with each motor in turn, correcting the wiring and/or programming as necessary.

And recognize that if you don't use some form of closed-loop control, weight balance will become extremely important.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-03-2015, 16:23
bacarpenter bacarpenter is offline
Lead programmer (2 years)
AKA: Baylee Carpenter
FRC #2197 (Las Pumas)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Indiana
Posts: 19
bacarpenter is an unknown quantity at this point
Re: Mecanum wheels not strafing correctly

I've checked all of these things and the programming and the pwms are right and the wheels are in the correct orientation.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2015, 16:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,088
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Mecanum wheels not strafing correctly


Step1

Print this diagram.

Step2

Put your bot up on blocks and observe wheel directions for all six commands (forward, reverse, spin right, spin left, strafe right, strafe left) and carefully compare them to the printout. Mark up the printout to show any wheel directions which do not agree with the attachment.

Step3

Tilt your bot on its side, and take a photo of the bottom showing all 4 wheels.

Step4

Take a picture of the marked-up printout and post it, along with your code and the photo from Step3.


Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2015, 16:40
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Mecanum wheels not strafing correctly

Quote:
Originally Posted by bacarpenter View Post
I've been working on the mecanum drive programming, I got the wheels to spin in the correct direction and all the motor controllers are hooked up correctly, but every time I try to strafe on the ground instead of going horizontally it'll move diagonally or rotate. Has anyone else had this problem and know how to help?
Assuming the wheels really are all spinning correctly, it sounds to me like a weight and/or gearing issue. Is this a fully functional robot, or just a drive chassis? Can you take 50 lbs off, and see if it starts working correctly? Does it strafe correctly when you first put in a brand new battery and then quickly stop working? Any of these issues could indicate a weight balance problem, or that your gearing is too high (try regearing to something lower). My team had similar problems when we first tried mecanum on a fully loaded robot (it had worked fine when it was just the chassis, but when we added the rest of the robot, it stopped strafing except for about 10 seconds with a brand new battery -- we fixed it by adding another gear reduction).


Quote:
Originally Posted by Alan Anderson View Post
And recognize that if you don't use some form of closed-loop control, weight balance will become extremely important.
Even if you do have closed-loop control, weight balance is important.

--Andy
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
Reply With Quote
  #8   Spotlight this post!  
Unread 09-03-2015, 14:08
1uan 1uan is offline
Registered User
AKA: Juan Halleran
FRC #2152 (S*M*A*S*H)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2012
Location: Port Orange
Posts: 18
1uan is an unknown quantity at this point
Re: Mecanum wheels not strafing correctly

Make joystick 1 or your second joystick and try to drive it
that worked for us
Reply With Quote
  #9   Spotlight this post!  
Unread 09-03-2015, 15:15
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,650
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Mecanum wheels not strafing correctly

Another cause of imbalanced weight across the wheels is if the wheels aren't in the same plane, or if the floor has a significant curvature or irregularity.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #10   Spotlight this post!  
Unread 09-03-2015, 15:43
bacarpenter bacarpenter is offline
Lead programmer (2 years)
AKA: Baylee Carpenter
FRC #2197 (Las Pumas)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Indiana
Posts: 19
bacarpenter is an unknown quantity at this point
Smile Re: Mecanum wheels not strafing correctly

Thanks for the help guys! We made the weight balance better and it works well
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 00:09.

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