View Single Post
  #1   Spotlight this post!  
Unread 02-06-2016, 03:03 PM
Sky Captain's Avatar
Sky Captain Sky Captain is offline
Lead Software Mentor
AKA: Will
FRC #0386 (Voltage)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2006
Location: Virginia
Posts: 18
Sky Captain is an unknown quantity at this point
Send a message via AIM to Sky Captain
Automatic Differential/Motor Speed Compensation

Hey All,

We're encountering a problem, we are currently using Rhino drive, with 2 motors per side. Sometimes one set of motors runs faster than the other. When that happens we use a differential modifier on the RobotDrive class.
Example:
Code:
Robot Drive(0.8*DIFFERENTIAL, 0.8)
and that makes the robot drive straight. The problem is that the hardware changes slightly between different sessions, so that means the DIFFERENTIAL modifier needs to change. Has anyone experimented with doing this automatically using encoders or anything else? Sorry, if the post isn't too clear, if you have questions I'm willing to supply answers.

Edit: We are using tank drive style, not arcade style.
__________________
When in doubt, check the documentation.

Last edited by Sky Captain : 02-06-2016 at 03:41 PM. Reason: Drive Style
Reply With Quote