![]() |
mecanum joystick selector?
![]() i have a mini mecanum bot, im trying to program it (programming is not my area, building is) i need it to do single stick drive , then when i click the trigger of that stick, and move the stick sideways, the robot will go sideways. i thought it would need two drive codes one for sideways and one for skidsteer, and a simple if statment between them.(this didnt work) im pretty shure my concept works, i jsut need a little help putting it into code, could someone translate this into C, or shoot me in the right direction? or if this is the totally wrong way to do this, help? IF (trigger pushed in) then (do sideways code) otherwise (do skid steer code) Devo Edit: i dont need mixing values or mecanum code, im having trouble with a selector. |
Re: mecanum joystick selector?
Hi Devo, Please allow me to "shoot you in the right direction"
A search on "omni holonomic mecannum" will yield at least 25 threads on this subject. It will include different takes on the math, snippets of code and a wealth of documented experience on this subject - going back 5 years. enjoy, Eric |
Re: mecanum joystick selector?
send me your email and I can send you some of our mecanum stuff. we programmed up a vex to use mecanums when were developing our FRC code.
Brian k9wis@yahoo.com |
Re: mecanum joystick selector?
Quote:
Code:
if (p1_trig) |
Re: mecanum joystick selector?
Quote:
If you swap the front and back wheels on each side, you'll make it more able to spin only when desired. (You'll also have to change the software to account for the change, of course. That could easily be as simple as switching the sign of one or two computations.) This is a separate topic from software, so I'm putting it in a separate reply. |
Re: mecanum joystick selector?
yeah i did put the wheels on backwards, i had them on correct but wanted to know what changed if they were on backwards. so i flipped them around, but never changed them back because it works about the same. i never really thought about the spinning or pushing power. so ill correct the wheels
Devo |
| All times are GMT -5. The time now is 00:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi