Go to Post Success is inspiring high schoolers to get real world experiance through internships with their sponsors. - Pamela [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 11-01-2010, 23:01
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
How do you wire the inputs for holonomic drive (omni wheels)

I found the sub-VI for a holonomic drive system in the new LabView Package, but I'm not sure what values to wire where.
I'm trying to upload a picture of the block diagram, but the most I can manage is an attached picture of the subVI with all the nodes labeled. Please help. I really just want to be able to put this drive system in place of the arcade drive that is in the original teleop.vi and also to be able to use it for autonomous.
Attached Images
File Type: bmp Omniwheel drive.bmp (85.2 KB, 148 views)
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2010, 23:09
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: How do you wire the inputs for holonomic drive (omni wheels)

Well, looking at the subVI, it looks like they're assuming you have a wheel in each corner, oriented at 45º to the frame of the robot.
(thus you can still call them "top-left, top-right, bottom-right, and bottom-left")
Hopefully this context help clears things up:


Magnitude is your speed
Direction is which direction you want to travel
Rotation is how much you want to turn the orientation of the robot.
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2010, 23:27
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
Re: How do you wire the inputs for holonomic drive (omni wheels)

Okay, I see how to set up the outputs to the motors, but how do I set up the drive VI to work with joysticks? It's not looking for values that I can input with the joysticks. I would like to make the robot move in the direction that the joystick is moved and to move with a magnitude relative to how far the joystick is pushed. I've heard of teams that have done this, but I have no idea how to do it myself.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2010, 23:46
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: How do you wire the inputs for holonomic drive (omni wheels)

In that case, the easiest way might just be to assign the Y axis to forward and the X axis to sidways.
However, if you would like to use their holonomic drive VI, there is a nice little function for converting an x,y position (cartesian) to a direction and magnitude (polar).


I know it shows r and theta.
r stands for radius, or the magnitude of a vector.
theta is a greek character that is used for direction. It will give you direction in radians, not degrees, so you will want to make the appropriate conversion.
__________________
-- Marshal Horn

Last edited by kamocat : 11-01-2010 at 23:49.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2010, 23:48
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: How do you wire the inputs for holonomic drive (omni wheels)

EDIT: Or apparently you can skip my whole post and use one VI to do the conversion for you.

To find the angle and magnitude of the joystick motion you are going to need to do some math with the joystick inputs.

I could just post the formulas here, but I think you will learn a lot more if you understand them so I'll post the idea and let you do the digging.

The joystick VIs allow you to access the Cartesian coordinates of the joystick (X,Y) where X is a left-right coordinate and Y is an Up-Down or Away-Towards coordinate. You want the joystick values in Polar coordinates (Theta, R) where Theta is an angle and R is a magnitude from the origin. You should be able to find more information on the coordinate systems and the formulas for conversion with some digging (if you can't find it try asking a math teacher, if you've still got nothing feel free to come back here).

One thing to be careful of is the 0 reference for the angle Theta. I'm not sure what range of values and reference the Holonomic drive VI takes but finding formulas for theta will give you either a 360 degree or 2*pi scale with theta=0 pointing in the direction of the positive X-axis.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2010, 08:16
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: How do you wire the inputs for holonomic drive (omni wheels)

To save you a little headache with the angle conversion, make sure you use the atan2 vi (not the atan vi). It takes care of the quadrant sign error that is so joyful in this industry
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2010, 21:30
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: How do you wire the inputs for holonomic drive (omni wheels)

Note that there is a bug in the detailed help documentation for the Rotation input to the Holonomic Drive VI. The documentation says the units are in degrees per second, but that is incorrect. The input range is from -1.0 to 1.0. 1.0 is spinning clockwise at full power and -1.0 is spinning counter-clockwise at full power.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2010, 21:52
eccmaster eccmaster is offline
Registered User
FRC #2344
 
Join Date: Jan 2008
Location: Yonkers
Posts: 17
eccmaster is an unknown quantity at this point
Re: How do you wire the inputs for holonomic drive (omni wheels)

Can some explain how i would use the rotation feature with a joy stick?
Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2010, 22:29
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: How do you wire the inputs for holonomic drive (omni wheels)

Well, you could use the Z axis.
Or you could use a handheld controller (eg logitech gamepad)
__________________
-- Marshal Horn
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you wire up the Operator Interface? iPilipino Electrical 6 22-01-2008 00:22
How do you wire the wheel encoders? Demothesis Electrical 2 17-07-2007 16:59
Friction coefficients for Omni wheels and Mecanum wheels from AndyMark Andy Baker Technical Discussion 11 16-12-2006 19:40
Omni-wheels and driver-centric drive efoote868 Programming 10 01-11-2006 22:22
How do you drive the KOP 6" wheels? Alex Cormier Technical Discussion 7 04-11-2004 17:14


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

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