View Single Post
  #7   Spotlight this post!  
Unread 17-02-2011, 11:42
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: Mecanum and Gear Ratios

Quote:
Originally Posted by HarryScheiner View Post
We have a slight problem... we are using mecanum wheels this year, and there is a different gear ratio for the front set of wheels than for the back set. The front set are 4.67:1 and the back set are 12.75:1. We are using the mecanumDrive_Cartesian() method (Java w/netbeans). How can we modify the speed of the front wheels easily?
I completely agree with the above that this is a HW problem and should be addressed that way ASAP. If you must adjust in SW you can scale the motor values in the wpilibj method rather than creating your own drive routine. Keep in mind not to let values get above/below 1.0/-1.0 and that any changes will be overwritten by updates. But if you keep those in mind it is probably easiest as it just requires multiplying by constants in one spot.
Let me know if you need details, I don't have the wpilib src with me but can post something tonight.

Good luck!
Reply With Quote