Go to Post I don't resent or envy them for being strong teams; I hope we can continue to learn from them and someday join their ranks. - dsmoker [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

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-02-2014, 22:34
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Mecanum Question about strafing.

Quote:
Originally Posted by SeafordVikingR View Post
Yes, the wheels are in the "X" formation. What happens is, it strafes but as if it's on a curve rather than strafing straight left and right.
Your motors and/or transmissions are not producing exactly the same wheel speed and/or your weight is not properly distributed. This is expected. If it strafed perfectly you would be lucky. You need encoders for each wheel or need to characterize the performance of each motor/transmission/wheel and account for this in your code. I'm not sure how a gyro would help you - that would be a tricky algorithm.

HTH
__________________
Fast, cheap or working - pick any two!
  #2   Spotlight this post!  
Unread 07-02-2014, 22:43
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Mecanum Question about strafing.

Well we coded in labview so that might have been the reason why it was so easy for us. You are right though wireties, from messing with mecanum since day 1 of build season we realized that strafing perfectly is not a thing. We can get very close but it wouldn't work.
  #3   Spotlight this post!  
Unread 07-02-2014, 23:06
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Mecanum Question about strafing.

Quote:
Originally Posted by xXhunter47Xx View Post
Well we coded in labview so that might have been the reason why it was so easy for us. You are right though wireties, from messing with mecanum since day 1 of build season we realized that strafing perfectly is not a thing. We can get very close but it wouldn't work.
Yeah, most people miss the fact that the OEM says the CIM motor curves can be +/- 10% (at least at the free speed point).
__________________
Fast, cheap or working - pick any two!
  #4   Spotlight this post!  
Unread 10-02-2014, 16:32
SeafordVikingR SeafordVikingR is offline
Registered User
FRC #4567
 
Join Date: Feb 2014
Location: Seaford
Posts: 8
SeafordVikingR is an unknown quantity at this point
Re: Mecanum Question about strafing.

Thank you all for the responses. We did attempt to play with the gyro, but with no success. However! We realized that the wheels weren't moving in the right direction when they were strafing. What we had were the 2 front wheels moving in the same direction and and the 2 back wheels moving in the opposite direction. What we really needed were the opposite wheels, top left & bottom right, to be moving in the same direction. So when we figured that out all we did was switch the pwms in labview and now it strafes beautifully!
  #5   Spotlight this post!  
Unread 10-02-2014, 17:25
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: Mecanum Question about strafing.

Quote:
Originally Posted by SeafordVikingR View Post
Thank you all for the responses. We did attempt to play with the gyro, but with no success. However! We realized that the wheels weren't moving in the right direction when they were strafing. What we had were the 2 front wheels moving in the same direction and and the 2 back wheels moving in the opposite direction. What we really needed were the opposite wheels, top left & bottom right, to be moving in the same direction. So when we figured that out all we did was switch the pwms in labview and now it strafes beautifully!
Just curious, did you have the wheels incorrectly selected in the code? (For example, Front right and Back right were swapped in the code)
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
  #6   Spotlight this post!  
Unread 13-02-2014, 19:39
SeafordVikingR SeafordVikingR is offline
Registered User
FRC #4567
 
Join Date: Feb 2014
Location: Seaford
Posts: 8
SeafordVikingR is an unknown quantity at this point
Re: Mecanum Question about strafing.

See the thing is, the defaulted mecanum code had each motor set to a pwm already, but that's also where the problem was for us. A simple switch of the pwms in the code fixed it up nicely, though.
Closed Thread


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:53.

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