Go to Post We have not always been a winning team but we have always tried to be a quality team. - WynS [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2011, 21:08
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 496
tomy has a spectacular aura abouttomy has a spectacular aura about
Best way to control the mechanum wheels

So I've heard that it's easier to control the robot with four mechunum wheels with an x-box controller. Is this true? If it is true how do you program that, because I'm our teams programmer?
  #2   Spotlight this post!  
Unread 12-01-2011, 21:16
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Best way to control the mechanum wheels

First, before touching any code, write down everything on paper. Now I personally have no experience with mechanum drive, but I do have lots of experiences when the robot goes haywire because I used the wrong operation or something silly like that. Always double check before hitting "run".

I would say if the X axis (or what ever you are trying to control the strafing with) is past a certain point then switch to "strafing" mode. Then make the wheels rotate based on the x axis. Its quiet simple IMHO. I assume you would have the same code for the regular 4, 6, 8 wheel drive then tag on the strafing.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #3   Spotlight this post!  
Unread 12-01-2011, 21:22
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 496
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Best way to control the mechanum wheels

slow down there i forgot to say this our first year with mecanum wheels should we just stick to the basics with the joysticks?
  #4   Spotlight this post!  
Unread 12-01-2011, 21:25
Stephen of REX's Avatar
Stephen of REX Stephen of REX is offline
Registered User
FRC #1727 (REX)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Cockeysville, Baltimore Co. MD
Posts: 164
Stephen of REX is an unknown quantity at this point
Re: Best way to control the mechanum wheels

You should use a joystick with a twist axis. Forward and back make the robot go forward and back, side to side makes it strafe, and twisting the joystick turns the robot. I have no idea about the programming though, I do mechanical/CAD.
__________________

Go REX!!!
  #5   Spotlight this post!  
Unread 12-01-2011, 21:26
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Best way to control the mechanum wheels

Quote:
Originally Posted by tomy View Post
slow down there i forgot to say this our first year with mecanum wheels should we just stick to the basics with the joysticks?
No, I say go for it bro. If you do not have the resources to build a prototype, I can make a software simulator for you. It won't be a robot driving on screen, but I can do motors on screen displaying its PWMs. First get the regular 4 wheel drive working with 1 joystick (the xbox controller in this case) then I will assist you with the mechanum drive. From the looks of it, its just the 4 wheel arcade with some extra
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #6   Spotlight this post!  
Unread 12-01-2011, 21:27
XaulZan11's Avatar
XaulZan11 XaulZan11 is offline
Registered User
AKA: John Christiansen
FRC #1732
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Milwaukee, Wi
Posts: 1,329
XaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond reputeXaulZan11 has a reputation beyond repute
Send a message via AIM to XaulZan11
Re: Best way to control the mechanum wheels

Quote:
Originally Posted by davidthefat View Post
Now I personally have no experience with mechanum drive
There are enough people here that do have experience with mechanum drive and have learned from those experiences. As it is with rules questions, only post when you are positive you are correct opposed to what you think is right. (I try to practice this and if you notice, I rarely, if ever, post in technical threads )

PS: for all I know, what you said was 100% correct and if so, I apologize.
  #7   Spotlight this post!  
Unread 12-01-2011, 21:28
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,813
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Best way to control the mechanum wheels

Quote:
Originally Posted by tomy View Post
slow down there i forgot to say this our first year with mecanum wheels should we just stick to the basics with the joysticks?
And you're starting during build?

Stick to the joysticks. There's prewritten code around somewhere; you would of course have to find it in your favorite language and tweak it for your robot.

I don't recommend doing mecanum in the six weeks if you haven't done it before; if you do it that way, KISS is a MUST. Start with stuff that's already out there.

David, you're close to right about the method, except that you forgot one thing: 4 independent motors vs 2 pairs of 2 motors. 2 pairs of 2 motors, you can Y-cable. 4 independent, it's a lot harder to Y-cable for some reason. Also use caution: Should you go to fallback (mecanum goes to 4WD rather easily), make sure you comment out the strafing--Alan Anderson of FRC45 found that out the hard way.

You could also do a complete directional program. That might be a bit harder.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #8   Spotlight this post!  
Unread 12-01-2011, 21:39
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 496
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Best way to control the mechanum wheels

My team really wants to do mecanum wheels... Anyone got any sample code for two joysticks+mecanum wheels?
  #9   Spotlight this post!  
Unread 12-01-2011, 23:00
3p1c w1n 3p1c w1n is offline
Registered User
FRC #1529
 
Join Date: Jan 2010
Location: Indianapiolis
Posts: 53
3p1c w1n is an unknown quantity at this point
Re: Best way to control the mechanum wheels

This is my 2nd year programming and last year we had a basic 4 wheel drive. For this year the team has chosen to go with mecanum. I'm using labview. It would be awesome if someone could teach me the programming behind mecanum drive.
__________________
~Team 1529 Cybercards~
  #10   Spotlight this post!  
Unread 12-01-2011, 23:04
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 496
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Best way to control the mechanum wheels

Im using c++ anyone got any good libraries?
  #11   Spotlight this post!  
Unread 12-01-2011, 23:05
KHall KHall is offline
KHall - 2171 Crown Point IN
FRC #2171 (RoboDogs)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Crown Point IN
Posts: 67
KHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud of
Re: Best way to control the mechanum wheels

Which develpment environment are you planning to use?

If its LabView, the VIs are all supplied. You'll have to do some problem solving to convert the joystick's output (or any other kind of steering device) to the inputs that the mechanum VI requires.

I can vouch for the LabView VI. We used it last year, it works great. And we've done mechanum wheels 3 of the last 5 years. Like anything else, there are tradeoffs to consider.

Keith Hall
Mentor FRC 2171, FLL 1528
  #12   Spotlight this post!  
Unread 12-01-2011, 23:07
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Best way to control the mechanum wheels

Quote:
Originally Posted by tomy View Post
Im using c++ anyone got any good libraries?
The only library allowed is the WPILib.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #13   Spotlight this post!  
Unread 12-01-2011, 23:07
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,296
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: Best way to control the mechanum wheels

Last year we used mecanum to great success, using two joysticks. One joystick controlled movement direction, and the other controlled rotation -- exactly like a 1st person shooter played on Xbox.

While it wasn't an Xbox controller, our driver could think of it as one, and he had an intuitive knack for it very quickly.
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #14   Spotlight this post!  
Unread 12-01-2011, 23:10
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 496
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Best way to control the mechanum wheels

So it's not hard to do it in c++?
  #15   Spotlight this post!  
Unread 12-01-2011, 23:12
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Best way to control the mechanum wheels

Quote:
Originally Posted by tomy View Post
So it's not hard to do it in c++?
No not at all, the mechanum drive would only take 5 lines MAX. (excluding the header file and PWM regulation)
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Closed Thread


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 23:58.

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