![]() |
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!!!
|
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). |
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! |
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. |
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. |
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
|
Re: Mechanum Programming for One Joystick
Quote:
|
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:
|
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