|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 4 motor Mecanum wheel code request
Quote:
![]() |
|
#2
|
||||
|
||||
|
Re: 4 motor Mecanum wheel code request
Quote:
http://www.chiefdelphi.com/forums/sh...383#post916383 ~ |
|
#3
|
|||
|
|||
|
Re: 4 motor Mecanum wheel code request
Ether's Post was a lifesaver for holonomic drive(partly because it is so easy to make sense of.) I whipped this up after reading it. All you need to do is plug in your joystick dev ref to the one side, and then plug the 4 values that output on the right into your 4 drive VI's.
Download it here: http://files.me.com/eovnu87435ds/k0i3pn (Link expires March 19, 2010) Note, I did not test this yet, since we didn't get our mechanum wheels yet hope this helps, and of course, all credit goes to Ether |
|
#4
|
||||
|
||||
|
Re: 4 motor Mecanum wheel code request
Quote:
http://www.chiefdelphi.com/forums/sh...d.php?p=907174 http://www.chiefdelphi.com/forums/sh...d.php?p=907168 ~ |
|
#5
|
|||
|
|||
|
Re: 4 motor Mecanum wheel code request
Sorry I've been pretty busy I have 4 college classes to keep up with too.
I talked with our machine tool instructor and he explained a little better what we need, and to answer Alan Anderson's question way back, we need Tank drive plus strafe, 2 joysticks both controlling one side of the robot on the y for tank drive and one or both as strafe on the x. He is going to have some more students look for code through emailing people on youtube. Again sorry I haven't been keeping up on this thread vary well, our tech center has 8th grade visits right now, so I wasn't even any where near the robot to try any of this code all week, nor am I now, and I won't be until Tuesday (Feb 23) Again thanks for all the help the! The pdf that Ether posted http://lib.store.yahoo.net/lib/yhst-...lSpecSheet.pdf has has defiantly cleared a few things up for me, and the code http://files.me.com/eovnu87435ds/k0i3pn looks interesting, will try it when If I ever get my hands on the robot before the deadline lol. |
|
#6
|
|||||
|
|||||
|
Re: 4 motor Mecanum wheel code request
That's very easy to do using the "Mecanum - Cartesian" vi. Use the average of the joysticks' X values as the X input, the average of the joysticks' Y values as the Y input, and the difference between the Y values (divided by 2) as the rotation input.
|
|
#7
|
|||
|
|||
|
Re: 4 motor Mecanum wheel code request
Quote:
Is there any where I can download those example files onto my computer so I don't have to be at the school? Thanks to all the help again! |
|
#8
|
|||||
|
|||||
|
Re: 4 motor Mecanum wheel code request
You can use the disks from the Kit of Parts to load LabVIEW for FRC on your own computer. Then download and install the LabVIEW update (see http://www.usfirst.org/frccontrolsystem for the link).
The HolonomicDrive vi is in the RobotDrive palette of the WPI Robotics Library functions. Once placed on the block diagram, it can be changed from Polar to Cartesian input. |
|
#9
|
||||
|
||||
|
Alan- is this sort of what you were talking about?
I guess I should note that Axis 3 and Axis 4 are a second set of X+Y axis from our Logitech Dual-Action Gamepad |
|
#10
|
|||||
|
|||||
|
Re: 4 motor Mecanum wheel code request
That looks exactly like what I was talking about.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mecanum Wheel Setup Help | Dylan5019 | NI LabVIEW | 16 | 10-02-2011 15:39 |
| Mecanum Wheel Considerations | abross | General Forum | 20 | 23-01-2010 19:34 |
| Mecanum wheel size | Mr. A | Technical Discussion | 7 | 18-01-2010 08:58 |
| pic: New mecanum wheel? | scottydoh | Extra Discussion | 5 | 16-01-2010 21:29 |
| pic: 2" Mecanum Wheel | Tytus Gerrish | Technical Discussion | 17 | 22-04-2006 12:22 |