|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. Last edited by Devo1098 : 31-05-2007 at 13:40. |
|
#2
|
|||||
|
|||||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||||
|
|||||
|
Re: mecanum joystick selector?
Quote:
Code:
if (p1_trig)
{
strafe();
}
else
{
skid();
}
|
|
#5
|
|||||
|
|||||
|
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. |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Autonomous selector | simpsonboy77 | Programming | 16 | 05-03-2007 22:26 |
| Mixing Joystick Values for mecanum wheels | Leav | Programming | 10 | 15-01-2006 14:51 |
| Help with Selector Switch | Slick | Programming | 2 | 16-02-2005 16:09 |
| Team selector switches on ISAAC | Lloyd Burns | Robotics Education and Curriculum | 0 | 17-12-2002 08:32 |
| Channel Selector | David Kelly | Technical Discussion | 6 | 03-06-2001 01:15 |