Skip to content

Shrimp swerve drive map#53

Open
Liammurray19 wants to merge 2 commits into
mainfrom
Shrimp
Open

Shrimp swerve drive map#53
Liammurray19 wants to merge 2 commits into
mainfrom
Shrimp

Conversation

@Liammurray19

Copy link
Copy Markdown
Contributor

No description provided.

@Liammurray19
Liammurray19 requested a review from a team as a code owner August 8, 2024 23:35
Comment thread src/main/java/frc/robot/maps/Shrimp.java Outdated
Comment thread src/main/java/frc/robot/maps/Shrimp.java Outdated
rearLeftSteer.getMotorController().setSmartCurrentLimit(30);
rearRightSteer.getMotorController().setSmartCurrentLimit(30);

// Configuration for MK4i with L2 speeds

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/main/java/frc/robot/maps/Shrimp.java Outdated
Comment thread src/main/java/frc/robot/maps/Shrimp.java Outdated
Comment thread src/main/java/frc/robot/maps/Shrimp.java Outdated

@bot190 bot190 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants