Glad I have more than six weeks with you.
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2017, 14:47
PopeRyanI PopeRyanI is offline
Registered User
FRC #2410 (Metal Mustangs Robotics)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2012
Location: Kansas
Posts: 23
PopeRyanI is an unknown quantity at this point
Swerve Module Programming Optimization

Hello all,

This year my team decided to go with a swerve drive for our robot, something our team had worked on during the offseason in the past. While our robot drives well overall, there are a few things we would like to optimize that I cannot figure out how to fix. We are using the Andymark Swerve and Steer modules with the standard encoders on the steer motors.

1. For some reason, at the beginning of the match, the wheels will always turn from the 0 position on the encoders to 180 degrees, which we cannot figure out. This only happens when we first drive forward at the beginning of a match, during which time the encoders are reset to 0. What could be causing this?

2. When quickly changing direction, going from forward to strafing, for example, the robot is a little jerky in that moment. Is there a good way to fix this?

3. Finally, the robot does not go perfectly straight even when all of the encoders are at the 0 position. We reset their position before any use so there is a little bit of error possible, but the robot veers a lot. Does anyone know any good ways to fix this? We are using the PigeonImu if that helps.

Our code can be found here: https://github.com/CAPS-Robotics/201...src/Subsystems
The main classes to look at are SwerveModule and Drivetrain.
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 13:02.

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