Thread: swerve drive
View Single Post
  #3   Spotlight this post!  
Unread 23-01-2017, 11:10
laura1640 laura1640 is offline
Registered User
FRC #1640
 
Join Date: Dec 2014
Location: Downingtown
Posts: 7
laura1640 is a jewel in the roughlaura1640 is a jewel in the roughlaura1640 is a jewel in the rough
Re: swerve drive

If you wish, you can get some more recent code from https://github.com/frc1640. The past few repositories also have Java code for swerve if you are interested.

Using an absolute encoder will save a lot of trouble. You could try saving the value of the encoders to a file and use the last values to initialize the position the next time you power the robot on. However, if someone moves the pivots while the robot is off, it will cause problems. I would advise looking into adding an absolute encoder to your swerve for convenience.

~Laura
Reply With Quote