Go to Post Spoiler: There will be no plasma cutters available in FIRST Choice - Jibsy [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 28-01-2010, 00:15
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Mecanum Wheels Programming

Magnitude has to be between 0 and 1. The most general way to do it is to have the Y and X axes of one joystick just act as point-and-shoot and use Pythagorean theorem (Magnitude = sqrt(X^2 + Y^2)). However, this results in a scale of 0 to 1.141, which means that with the limiting blocks they have inside Holonomic.vi, when driving while using multiple joystick axes with high values, come of the motor values will get capped, so you won't quite end up with the right vectors (because the over-1 magnitude will cause the motors to try to go faster than they can).

One way to get around this is to multiply the magnitude by .7, which will bring the max value back down to 1. However, this means that you can't go as fast forward or sideways, and you're only getting full speed diagonally. The way I prefer is to measure all of the motor values, and if any of them are out of range, scale all of the motors down to the most out-of-range motor (if the fastest motor is getting a value of 1.141, divide all of the motors by 1.141). This allows you to have full power in all directions, while maintaining correct vectors.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 18:20
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: Mecanum Wheels Programming

Quote:
Originally Posted by daltore View Post
One way to get around this is to multiply the magnitude by .7, which will bring the max value back down to 1. However, this means that you can't go as fast forward or sideways, and you're only getting full speed diagonally. The way I prefer is to measure all of the motor values, and if any of them are out of range, scale all of the motors down to the most out-of-range motor (if the fastest motor is getting a value of 1.141, divide all of the motors by 1.141). This allows you to have full power in all directions, while maintaining correct vectors.
Just FYI, very similar changes were made to the WPILib code a while back and will be in the next update.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2010, 22:50
fimmel's Avatar
fimmel fimmel is offline
Founding Mentor, Team 2370
AKA: Forest Immel
FRC #2370 (iBots 2370)
Team Role: Mentor
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Castleton, Vermont
Posts: 325
fimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond repute
Re: Mecanum Wheels Programming

Quote:
Originally Posted by jhersh View Post
Just FYI, very similar changes were made to the WPILib code a while back and will be in the next update.
Is there a date as to when this is going to be released?

...Forest
__________________



Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2010, 15:26
BryanF BryanF is offline
Registered User
FRC #0930
 
Join Date: Feb 2010
Location: Mukwonago Wisconsin
Posts: 2
BryanF is an unknown quantity at this point
Re: Mecanum Wheels Programming

Just to let you know with mechanum wheels it is very important that you have all WHEELS turning the same speed because as we all know motor speed is not very accurate some time i recommend putting encoders on your wheels using one joystick and a button to switch between tank drive and strafing back to the encoders 100% sure you will need to use PID but the benefits will show when you get it working
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2010, 01:32
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: Mecanum Wheels Programming

Quote:
Originally Posted by fimmel View Post
Is there a date as to when this is going to be released?
Looks like it will be next week.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2010, 23:55
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Re: Mecanum Wheels Programming

the best way to scale the input into the holonomic drive vi is to set a case for overflow
if > 100 then = 100
that way
.70=.70
.80=.80
.90=.90
1.00=1.00
1.41=1.00
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2010, 04:30
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Mecanum Wheels Programming

Quote:
Originally Posted by jhersh View Post
Just FYI, very similar changes were made to the WPILib code a while back and will be in the next update.
So, this has happened twice so far this season First, it's the scaling I added in, and then this week, it was the single Jaguar CAN refnum VI I hacked together (and got working, thank you very much) that we just got the update for. I seem to be coding one step ahead of release...
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2010, 08:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Mecanum Wheels Programming

Great minds ...

And that is also why WPILib ships with source code in each of the languages. So you don't necessarily have to wait for us.

Greg McKaskle
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
Mecanum Wheels tennispro9911 Technical Discussion 6 07-11-2008 00:04
Mecanum Wheels? Maxpower57 Kit & Additional Hardware 17 17-03-2008 16:50
Friction coefficients for Omni wheels and Mecanum wheels from AndyMark Andy Baker Technical Discussion 11 16-12-2006 19:40
Mecanum Wheels chaolin2007 Control System 1 25-02-2006 19:16
Mecanum Wheels TheFerret Technical Discussion 8 16-01-2006 09:23


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

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