Go to Post Blame it on the programmer. - colt527 [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 07-12-2007, 12:23
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,017
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Controlling a Mecanum drive with two joysticks?

I think it really isn't too difficult to make it work, you can use one 2-axis joystick to move the robot in the 4 directions or diagonally, and another single axis joystick to rotate the robot. The one's we've played with here were done that way, this thread

http://www.chiefdelphi.com/forums/sh...ad.php?t=50030

has some information about it and a link to the code for a vex controller. Both of the mecanum robots used the vex controllers, not FRC, although the big one did use the big drive motors and Victor speed controllers. Our big one is shown here

http://www.chiefdelphi.com/forums/sh...ad.php?t=59027
  #2   Spotlight this post!  
Unread 07-12-2007, 15:35
Jeff K.'s Avatar
Jeff K. Jeff K. is offline
Hmm..now what?
FRC #1138 (Eagle Engineering)
Team Role: Alumni
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Chatsworth, California
Posts: 706
Jeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond reputeJeff K. has a reputation beyond repute
Send a message via AIM to Jeff K. Send a message via MSN to Jeff K.
Re: Controlling a Mecanum drive with two joysticks?

We did this last year only using 3 axes. On the left joystick, it was overall translation, with x and y. It also controlled strafing sideways, forward, and diagonal. The right joystick just had the x axis, and it was for rotation. It was relatively easy to drive.

Programming it was another story. We used another person's code that wasn't a part of FIRST and worked off of that. You can find code for how to do it on the vex platform, and base it off that.

To prototype though, do it on VEX with a holonomic drive using omni wheels in the offseason. Same code and it's definitely cheaper.

Good luck
  #3   Spotlight this post!  
Unread 07-12-2007, 15:39
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,508
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Controlling a Mecanum drive with two joysticks?

Quote:
Originally Posted by Jeff K. View Post
We did this last year only using 3 axes. On the left joystick, it was overall translation, with x and y. It also controlled strafing sideways, forward, and diagonal. The right joystick just had the x axis, and it was for rotation. It was relatively easy to drive.

Programming it was another story. We used another person's code that wasn't a part of FIRST and worked off of that. You can find code for how to do it on the vex platform, and base it off that.

To prototype though, do it on VEX with a holonomic drive using omni wheels in the offseason. Same code and it's definitely cheaper.

Good luck
I've heard/seen this is a good way to do it.

If i remember right, a team even used a turntable type input and were rather pleased with that.
  #4   Spotlight this post!  
Unread 07-12-2007, 15:58
UrsaMNet's Avatar
UrsaMNet UrsaMNet is offline
Eats Robots for Breakfast
AKA: Joe DeBlasio
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Portland, Oregon
Posts: 13
UrsaMNet is on a distinguished road
Send a message via AIM to UrsaMNet
Re: Controlling a Mecanum drive with two joysticks?

Team 1540 did this for the 2007 season. We too, spent a LOT of time trying to figure out how to get it to work best. Once we figured it out, we were astounded at how simple it can be.

Our robot had two joysticks. One controlled planar motion (pushing the joystick forward, moved the robot forward. Moving it sideways meant that the robot moved straight sideways). The other joystick controlled rotation (we only used the x-axis). Our team members picked this up pretty quickly, and it's a blast to drive.

Control wise, you can break the problem into two parts. We figured out how to control planar motion using one joystick, and wrote a function for it. Then we figured out how to do rotation, and wrote another function for that. Both of these easier problems can be easily figured out with a pen and paper to diagram out what inputs you have, and what outputs you'd want in that situation.

Then all we had to do was combine them! We started out simply averaging the values (weighted averages, actually). There are better ways to do this, but this gets you going quickly and easily. Once you've gotten that up and working, you can try to figure out optimizations which can dramatically increase the maximum speed/performance.

Mecanum drive is a lot of fun, I'm glad to see another team taking it on.

As a side note, you can setup the wheels on your base in two ways. In one arrangement, the rollers on the wheels will form an 'x' on the bottom of the robot. In the other arrangement, they'll form an 'o'. You can program both to work, but it's worth taking the time to think through what the advantages/disadvantages to each are, as the two aren't interchangeable.

I hope that's helpful. I'll admit I haven't looked at the whitepaper. Good luck!
__________________
FORMER programmer, webmaster, team captain, driver extraordinare (now I'm just a volunteer)

Team 1540
- The Flaming Chickens - (Our Website)

2008 Oregon Regional Winner
2008 Oregon Regional Engineering Inspiration Award
2008 Oregion Regional Best Website Award
2007 San Diego Regional Second Seed
2007 San Diego Regional Motorola Quality Award
2007 Pacific Northwest Regional Chairman's Award Winner
2007 Pacific Northwest Regional Finalist
2005 Best Website Award - Championship Event
2005 7th Seed Alliance Captains - Pacific Northwest Regional
2005 Best Website Award - Pacific Northwest Regional
2005 Rookie Inspiration Award - Pacific Northwest Regional
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Jester Drive:Mecanum Wheel Drive Train Ken Delaney 357 Technical Discussion 64 29-03-2006 22:16
two joysticks TEAM 1436 Control System 14 03-03-2005 21:23
Controlling Solenoids With Victors Brandon_Cmpvir Electrical 20 16-03-2004 10:21
controlling with the radio Lord Nerdlinger Programming 2 17-02-2004 22:40
Two Right Joysticks??? Evil_Warlord_42 Control System 26 28-01-2004 23:59


All times are GMT -5. The time now is 21:10.

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