Go to Post so this is going to sound really dumb but remember that i am a mechanical guy. - Greg Needel [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 21-02-2010, 00:24
IraGlass IraGlass is offline
Registered User
FRC #2367
 
Join Date: Feb 2010
Location: Mountain View
Posts: 1
IraGlass is an unknown quantity at this point
Encoder-assisted Mecanum drive?

I'm having trouble with the programming for a Mecanum drive that runs straight. I can see how to use encoders to straighten out a tank/arcade drive, and my straightening code works fine forwards and backwards, but moving side-to-side or spinning messes up the code and just makes the robot twitch around. Is there some default code or other method to run an encoded Mecanum drive? Any advice is greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 00:57
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,830
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Encoder-assisted Mecanum drive?

We had two very talented programmers who figured out how to do this using interrupts on an IFI controller three or four years ago. I believe they calculated a desired speed for each wheel, then ran a PID loop to set the wheel speed. Aside from that, I don't actually know what they did, and am afraid to touch the code for that robot lest we send it skittling across the floor out of control. It took a while to tune it.

Have you tried using the gyro to keep it traking straight?

Jason
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2010, 23:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Encoder-assisted Mecanum drive?

Quote:
Originally Posted by IraGlass View Post
I'm having trouble with the programming for a Mecanum drive that runs straight. I can see how to use encoders to straighten out a tank/arcade drive, and my straightening code works fine forwards and backwards, but moving side-to-side or spinning messes up the code and just makes the robot twitch around. Is there some default code or other method to run an encoded Mecanum drive? Any advice is greatly appreciated!
Just curious, how badly does your bot behave with just open-loop voltage commands given to the 4 motors?

If it's ill-behaved open-loop, it's possible there's a weak motor or a friction problem with the drivetrain or mecanum rollers. Have you checked all the rollers to make sure they spin freely?


~
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2010, 00:12
samir13k samir13k is offline
Registered User
AKA: Samir Shaikh
FRC #4329
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: St. Louis, MO
Posts: 281
samir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant futuresamir13k has a brilliant future
Send a message via AIM to samir13k Send a message via MSN to samir13k
Re: Encoder-assisted Mecanum drive?

this is probably already considered: but just make sure your wheels are in the correct setup. i believe mechanums go in an "X" configuration? not positive though... also, maybe you would like to mention what language you are using. I cant help much, but it may be beneficial to the next guy reading this post
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
862 mecanum drive Wildcat Robot Showcase 0 15-02-2010 17:21
crab drive vs. mecanum drive system superbotman Technical Discussion 33 06-01-2010 03:09
Mecanum Drive - Help Smoking_Gun Programming 22 04-12-2007 20:51
pic: Jester Drive:Mecanum Wheel Drive Train Ken Delaney 357 Technical Discussion 64 29-03-2006 22:16


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

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