View Single Post
  #1   Spotlight this post!  
Unread 13-01-2006, 16:46
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
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
any ideas on how to integrate the Z axis so that when stationary the robot can be controlled to turn around itself but can still be turned while moving in a straight line (i realize that the form would be a circle of sorts)

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
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)