Go to Post It's wonderful to think of how close together we all grow, win or lose. - Po-ser [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: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
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