Go to Post A sign of character is the ability to move on and make the best of what you have, even if you feel you were completely wronged. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 26-01-2008, 10:54
hysqrd hysqrd is offline
Registered User
FRC #0231
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Texas
Posts: 2
hysqrd is an unknown quantity at this point
Mechanum Programming for One Joystick

Hello anyone and everyone!!! I have been searching Chief Delphi endlessly for Mechanum code for one joystick, but I've come up empty-handed. This year our team wants to implement a mechanum drive train, but I am not that knowledable about programming C to come up with it on my own so my programming team and I are in need of some help could anyone link us to or provide some code possibly? Thanks for all your help!!!
  #2   Spotlight this post!  
Unread 26-01-2008, 11:15
Lucretius Lucretius is offline
#395 Mentor, #1884 Alumnus
FRC #0395 (2 Train Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: New York, NY
Posts: 42
Lucretius is an unknown quantity at this point
Re: Mechanum Programming for One Joystick

See 357's Jester Drive code: http://www.chiefdelphi.com/forums/sh...ht=jesterdrive

Everything's correct, it's just spread out so the final equations are just plain addition instead of mystery plusses and minuses (due to vector addition).
  #3   Spotlight this post!  
Unread 26-01-2008, 11:40
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: Mechanum Programming for One Joystick

Some functions you want out of a mecanum platform are forward and lateral translation, along with rotation. Most single joysticks don't have 3 axes, unless you can find one with twist, so you can rotate.

Last year, we looked at 190's code for where to start. Good luck with yours!
  #4   Spotlight this post!  
Unread 26-01-2008, 12:27
GRS GRS is offline
Registered User
FRC #1764
 
Join Date: Jan 2008
Location: KC, MO
Posts: 34
GRS is an unknown quantity at this point
Re: Mechanum Programming for One Joystick

Take a look at the vectors for mecanums, they should point in an x direction (opposite each other), and in a y direction (also opposite).

It should just be a simple matter of pwm assignements.
  #5   Spotlight this post!  
Unread 26-01-2008, 14:29
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
Re: Mechanum Programming for One Joystick

See this Chief Delphi thread about mecanum drive:

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

If you still need help, just reply with a question.
  #6   Spotlight this post!  
Unread 26-01-2008, 15:21
rachal's Avatar
rachal rachal is offline
multipurpose tool
AKA: Rachel
FRC #1072 (Harker Robotics)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: San Jose, CA -> Cambridge, MA
Posts: 172
rachal is just really nicerachal is just really nicerachal is just really nicerachal is just really nicerachal is just really nice
Send a message via AIM to rachal
Re: Mechanum Programming for One Joystick

Does your joystick rotate too? Might be a good idea to have a separate control for that. We used a potentiometer with a record mounted on it as a turntable last year
__________________
2005 Sacramento Winners with 245 and 766
2005 SVR Semi-Finalists with 840 and 668
2005 SVR Judges Award
  #7   Spotlight this post!  
Unread 26-01-2008, 21:58
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
Re: Mechanum Programming for One Joystick

Quote:
Originally Posted by rachal View Post
Does your joystick rotate too? Might be a good idea to have a separate control for that. We used a potentiometer with a record mounted on it as a turntable last year
Last year, we originally had a joystick that twisted (for the z-axis of mecanum drive). But after experiencing lots of problems (namely, it was too difficult to achieve fine control over the short twisting range of the joystick), we swapped twisting out to a second joystick.
  #8   Spotlight this post!  
Unread 14-02-2008, 13:05
hysqrd hysqrd is offline
Registered User
FRC #0231
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Texas
Posts: 2
hysqrd is an unknown quantity at this point
Re: Mechanum Programming for One Joystick

Thanks for all of your input!! Now, we've decided to go with a tank drive on one joystick and the crab/strafing action on the other...but I am still having difficulties programming that....
  #9   Spotlight this post!  
Unread 14-02-2008, 13:21
RyanW RyanW is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: MD
Posts: 40
RyanW has a spectacular aura aboutRyanW has a spectacular aura about
Re: Mechanum Programming for One Joystick

If by "Tank drive" you mean moving straight and turning, any of the Mecanum Drive codes already posted should still work...just set the forward and turn inputs to the first joystick, and the strafe input to the other one.
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
Joystick Programming team 803 Programming 6 21-02-2006 11:49
One Joystick Drive mattsavela Programming 20 19-05-2005 21:28
One Joystick Control KWalsh Programming 4 24-02-2004 17:53
More than one joystick from one port Jmoo Programming 3 26-06-2003 18:01
One Joystick Code fs_2002 Technical Discussion 3 16-01-2002 00:47


All times are GMT -5. The time now is 19: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