Go to Post Dance Dance Revolution is the only solution. That rhymed. I should not be on chief at this hour of the morning. >_< - Eugenia Gabrielov [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-02-2012, 14:06
DeadlyJohny DeadlyJohny is offline
Registered User
FRC #3417
 
Join Date: Feb 2012
Location: Dallas, TX
Posts: 26
DeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to beholdDeadlyJohny is a splendid one to behold
Re: Tank Drive Mecanum

Quote:
Originally Posted by vhcook View Post
Can you please elaborate on what you would expect to happen for various joystick movements? I don't quite understand what result you are trying to achieve.
I mean, the right 'joystick' would control the right half of the robot(top right and bottom right wheels) and the left 'joystick' controlls the left half(top left and bottom left wheels). Thus by pushing BOTH of the controllers back and forth, the robot would go backwards and forwards respectively. To rotate, the driver would push the right joystick forward and the left joystick back in order to go in a counter clockwise fasion and the opposite for a clockwise motion. In order to strafe, the driver would lean the joystick's both in the same direction horizontally, thus both joysticks leaning left would cause the robot to strafe left and the oposite to strafe right.

See my p.o.v?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-02-2012, 14:48
vhcook's Avatar
vhcook vhcook is online now
Reader of Things
AKA: Victoria
FRC #1939 (Kuh-nig-its)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Kansas City, MO
Posts: 546
vhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond reputevhcook has a reputation beyond repute
Re: Tank Drive Mecanum

Ok. I understand, and this is possible. I haven't done it before, but it would require reverse-engineering the Holonomic drive VIs a bit to figure out how to manipulate your joystick inputs before feeding them to the stock VI to get the desired result. Basically, you'll need to mathematically convert your two Y and two X axes into an X, Y, and Z (rotation) value, each of which should be in the range -1 to 1, with 0 being stop.

If you use holonomic cartesian, you can get an effect just like movement in Halo or most first person shooters using unmodified axis inputs. Left Y axis = forward/reverse (Y input), left X axis = strafe (X input), right X axis = twist (Rotation input). You can, of course, reverse the X axes to match your driver's personal taste. This is very easy to code, and will work out of the box (although you should initially test on blocks to make sure you have the correct motor polarities in Begin.VI (all motors should go forward when you're pushing the left stick forward, and any that are backwards can be fixed by setting the appropriate invert option on the RobotDrive 4 Motor Open to True)).

Given the amount of time you have until your competition and the amount of testing you will need to do on practice day, my recommendation would be to do this the easy way and pick a driver who is comfortable with Halo-style controls. If you still want to go with the hard way, I'll be happy to provide more advice, but I don't think the benefits are going to outweigh the time cost for development and testing at this point in your season.
__________________


Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2012, 14:50
Dusk Star's Avatar
Dusk Star Dusk Star is offline
team Chief Delphi junkie
AKA: Andrew
FRC #2611 (Jacktown Vectors)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Jackson, MI
Posts: 63
Dusk Star is an unknown quantity at this point
Re: Tank Drive Mecanum

The easiest way might be to use the average of the two sticks' y axis for what it wants as the y axis input, 1/2 the difference in y for rotational input, and the average of their x axis for side to side motion.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2012, 14:50
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Tank Drive Mecanum

Not sure why you want to do it this way.

Bottom line is if you want to gain the maneuverability of mecanum wheels and use the built libraries of LabView, you must pass the holonomic vi a vector (magnitude and direction) plus a rotation signal representing what you want the robot to do. This years holonomic vi also allows you to work in cartesian coordinates as well.

However you generate those signals from the joysticks is up to you. The easiest way is to take the x and y signal from the joystick and pass it to the holonomic vi. If that doesn't work for you, you would be on your own for coding the correct signals to the drive system with mecanum wheels....definitely not for the faint of heart at this point in the game.

Post some sample code of what you are trying to do.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi