Go to Post Do I think the bar is too high? I think impossible dreams and lofty goals are a key part of FIRST; the "top" being extremely far away only pushes people farther. - Chris is me [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: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-01-2015, 05:12
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Re: Need advice on mecanum

I've already posted this in another thread, but our team developed our own Java Library, as we had a lot of issues with the default stock code. It can be found here:

http://ai-robotics.com.au/code-libraries/

I am very happy to help any team that needs help programming the mecanum wheels, regardless of whether they are using our library or not
__________________
Theory is when you know everything but nothing works. Practice is everything works but no one knows why. On our Team, theory and practice are combined: nothing works and no one knows why!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2015, 09:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,071
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: Need advice on mecanum

Quote:
Originally Posted by sasha831 View Post
our team developed our own Java Library, as we had a lot of issues with the default stock code
What were the issues you had with the WPILib code?


Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2015, 12:57
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 348
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Need advice on mecanum

Quote:
Originally Posted by sasha831 View Post
I've already posted this in another thread, but our team developed our own Java Library, as we had a lot of issues with the default stock code. It can be found here:

http://ai-robotics.com.au/code-libraries/

I am very happy to help any team that needs help programming the mecanum wheels, regardless of whether they are using our library or not
Team 2465 (Kauaibots) has been working with mecanum for a few years now. We're one of those teams that will hopefully have a singing mecanum driver system.

Like the fine folks at ai-robotics, we'd like to make our mecanum drive code available too - in the hopes that other teams find it useful. I sincerely hope this won't steal the thunder from ai-robotics' excellent work, but since the Kauaibots code has some unique features, we wanted to post this on this thread.

This is a custom implementation of mecanum drive, based on Ether's incredibly thorough and enlightening documentation that was posted a few years ago.

To this, we added two things:

(a) Velocity PID control of CAN-based black Jaguars (for traction control, which could come in handy this year). We note that mecanum is sensitive to weight distribution, and a velocity PID is very useful to help deal with this issue. You can disable this if you want.

(b) integration with the nav6 IMU for a field-oriented drive that exhibits superior accuracy (typically, yaw drift of about 2.5 degrees over a 2:30 minute period, the FRC match length). Like the ai-robotics code, you can disable this if you want, too.

The java code for this is available online. See the Drive.java file.

You might also find the "AutoDrive.java" and "StickDrive.java" files useful, they're up one directory, then down into the "commands" directory. The StickDrive implements a set of joystick response curves we've found useful.

Team 2465 partnered with Kauai Labs to design the new open-source navX MXP Robotics Navigation Sensor. The navX MXP is compatible w/the nav6, so you should be able to use either board with this code. Alternatively, the kit of parts gyro can be integrated into it, although we find the nav6/navX provides greater accuracy.

There are a few tuning parameters (the robot wheel base and the wheel diameter). We've tested this on both 6-inch and 8-inch Andymark mecanum wheels, on both square-shaped and rectangular chassis. Our favorite configuration is a rectangular chassis with 8-inch wheels. This has enough pushing power to push one of the adult mentors sitting in a chair (the chair doesn't have wheels) across a carpeted floor.

This code is for the CRio; We haven't yet ported this to the RoboRio, but we'll be posting the ported code soon.

Aloha,

- scott
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2015, 13:08
Hoffer5236's Avatar
Hoffer5236 Hoffer5236 is offline
Project Manager
AKA: Matthew Hoffer
FRC #5236 (Man O' War)
Team Role: Engineer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Cambridge
Posts: 20
Hoffer5236 is on a distinguished road
Re: Need advice on mecanum

What is the best layout for the drive base? My team is working with a modified KOP drive base in the long configuration. We chose this with the thinking that it will be easier to balance weight with the forklift collector we are currently planning on using. But, we do not have enough experience in mecanum to know how this will affect the wheels. Should we revert to a square drive base and figure out the weight distribution? How will a long drive base affect strafing?
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


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

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