Go to Post ...if most of the money comes from sponsors, I have a bit of a problem letting them [the students] charge off a cliff with it. - TimCraig [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 04-01-2015, 17:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: mecanum wheel postioning

Quote:
Originally Posted by EricH View Post
Ether, you want to chime in here?
Theoretically, if the wheel pattern is not square then trackwidth and wheelbase lengths should enter into the inverse kinematic computation if you want the rotate command to correspond with actual engineering units:

Code:

FrontRight = FWD - STR - K*omega

FrontLeft  = FWD + STR + K*omega

RearLeft   = FWD - STR + K*omega

RearRight  = FWD + STR - K*omega

... where:

FrontRight,FrontLeft,RearLeft,RearRight are wheel tangential speeds, ft/sec

omega is CW rotation around center of area, rad/sec

FWD and STR are driver commands, ft/sec

K is (trackwidth + wheelbase)/2, ft
WPILib and LabVIEW don't support this, so you would have to scale your rotation before calling these methods.

If you don't scale the rotation, it won't cause wheel scrub. It just won't correspond to the rotation you expected.


 


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 03:32.

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