Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Mechanum Programming for One Joystick (http://www.chiefdelphi.com/forums/showthread.php?t=62524)

hysqrd 26-01-2008 10:54

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. :confused: 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!!!

Lucretius 26-01-2008 11:15

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).

Jeff K. 26-01-2008 11:40

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!

GRS 26-01-2008 12:27

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.

jacobhurwitz 26-01-2008 14:29

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.

rachal 26-01-2008 15:21

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 :P

jacobhurwitz 26-01-2008 21:58

Re: Mechanum Programming for One Joystick
 
Quote:

Originally Posted by rachal (Post 686219)
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 :P

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.

hysqrd 14-02-2008 13:05

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.... :confused: :ahh:

RyanW 14-02-2008 13:21

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.


All times are GMT -5. The time now is 23:48.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi