Shrimp swerve drive map#53
Open
Liammurray19 wants to merge 2 commits into
Open
Conversation
bot190
requested changes
Aug 9, 2024
| rearLeftSteer.getMotorController().setSmartCurrentLimit(30); | ||
| rearRightSteer.getMotorController().setSmartCurrentLimit(30); | ||
|
|
||
| // Configuration for MK4i with L2 speeds |
Member
There was a problem hiding this comment.
Shrimp is going to have MK4 modules not MK4i. Still L2 speeds.
This will also impact the motor inverting since the motors are mounted the other direction on the MK4.
| final SDSSwerveModule rearRight = new SDSSwerveModule(new Translation2d(-MODULE_OFFSET_XY, -MODULE_OFFSET_XY), | ||
| new CtreEncoder(encoderRR), rearRightSteer, rearRightDrive, MK4i_L2); | ||
|
|
||
| final double maxDriveSpeedMetersPerSecond = Units.feetToMeters(14.5); |
Member
There was a problem hiding this comment.
We should probably derive this from the swerve module config, but the max speed is definitely not this fast since we're only using NEOs not Vortexes.
bot190
reviewed
Aug 14, 2024
bot190
left a comment
Member
There was a problem hiding this comment.
This looks good now. Not sure there's any reason to merge this until we have the actual robot and can set the gyro offsets and such.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.