Thread: swerve drive
View Single Post
  #7   Spotlight this post!  
Unread 22-01-2017, 12:57
Aslihanokur Aslihanokur is offline
Registered User
FRC #2905
 
Join Date: Jan 2017
Location: Turkey
Posts: 2
Aslihanokur is an unknown quantity at this point
Re: swerve drive

Quote:
Originally Posted by laura1640 View Post
Hello,

On our swerve modules, we use two different sensors. One is to determine the angle that the wheel is pointed to. Like others have said, this is an absolute analog sensor. This is helpful because regardless of what angle the swerve modules are facing when the robot is powered on, they will still read the correct angle. Each of these sensors gets plugged into one of the 4 analog IO ports on the roborio.

The second encoder is used to determine the distance that the pivot has moved, similar to other drivetrains. This is mostly useful in autonomous, where the distance the robot travels needs to be exact. These sensors can be plugged into the digital IO ports on the roborio.

Also, may I ask what version of our code you are looking at (as in what year)?

~Laura
We used the codes that you wrote at 2012-Rebound Rumble. I wonder if we can set the swerve drive without absolute encoders. We reshaped our codes and made some replacement on our electronics. Actually it worked.However, ıt got the point that start at the begining as zero so that we need to make all 4 wheels at the same position before we send codes the robot. Are there any solution except using an absolute encoder?
Reply With Quote