|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Mixing Joystick Values for mecanum wheels
We are preparing for the possibility of installing mecanum wheels on our robot this year and as a proccess are trying to figure out how to mix three joystick values into a working motor signal...
X is what controls your left/right movement. y is what controls your up/down movement. and Z is supposed to control the robot's spin around the Z axis. we have nailed the combo for X and Y but i'm still lacking the Z integration... Code:
m1/-------------\m2
|-------------|
|-------------|
|-------------|
|-------------|
|-------------|
|-------------|
m3\-------------/m4
m1=y+x-127
m4=y+x-127
m2=y-x+127
m3=y-x+127
later on i hope to tackle moving on a straight line in relation to the field while all the while turning, so that the effect is somewhat like an ice puck, turning around itself while still moving in a straight line) but first thing first.... any idea how to integrate the Z axis control? Thanks, -Leav |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting A Bot To Turn | Andrew Blair | Technical Discussion | 20 | 16-10-2005 23:49 |
| Change joystick to pwm mapping | Joe Lewis | Programming | 3 | 30-03-2005 19:27 |
| Changing 1 joystick code to 2 (rookie team) | Brawler006 | Programming | 5 | 20-02-2004 17:00 |
| Lots of Wheels and F = u x N | archiver | 2001 | 17 | 23-06-2002 23:37 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |