5/29 Testing Changes - #15
Closed
Wu-Fan-529 wants to merge 1 commit into
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR applies hardware testing updates for robot IDs, drivetrain calibration offsets, and shooter/intake control behavior.
Changes:
- Renames/updates CAN ID constants and uses the new names in subsystems.
- Adjusts rotor speed constants and switches serializer/intake roller paths to open-loop duty cycle in some cases.
- Adds driver bindings for shooting and reset-pose behavior.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/java/frc/robot/subsystems/Rotors.java |
Updates transfer roller IDs and adds open-loop serializer/intake roller control. |
src/main/java/frc/robot/subsystems/Motion.java |
Uses renamed hood CAN constant. |
src/main/java/frc/robot/RobotContainer.java |
Adds shooting and reset-pose command bindings. |
src/main/java/frc/robot/DeviceIDs.java |
Renames/reorders rotor and motion CAN IDs. |
src/main/java/frc/robot/constants/ConstRotors.java |
Updates rotor speed constants and serializer stop/shoot values. |
src/main/java/frc/robot/constants/ConstDrivetrain.java |
Updates swerve absolute encoder offsets. |
src/main/java/frc/robot/commands/states/Shooting.java |
Uses duty-cycle stop value for serializer shutdown. |
src/main/java/frc/robot/commands/states/Intaking.java |
Starts intake rollers during initialization and updates stop constant usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+114
to
+117
| public void setIntakeRollersSpeed(double speed) { | ||
| intakeRollersWest.set(speed); | ||
| intakeRollersEast.setControl(intakeRollerEastFollower); | ||
| } |
| public static final AngularVelocity INTAKE_ROLLERS_SPEED = Units.RPM.of(3); | ||
| public static final AngularVelocity FLYWHEEL_SHOOTING_SPEED = Units.RPM.of(1000); | ||
| public static final AngularVelocity INTAKE_ROLLERS_SPEED = Units.RPM.of(1000); | ||
| public static final AngularVelocity FLYWHEEL_SHOOTING_SPEED = Units.RPM.of(3000); |
TaylerUva
requested changes
May 30, 2026
TaylerUva
left a comment
Member
There was a problem hiding this comment.
No need to change device variable names
Should shooting set the flywheel speed? what part actually makes it "shoot"?
Comment on lines
+114
to
+117
| public void setIntakeRollersSpeed(double speed) { | ||
| intakeRollersWest.set(speed); | ||
| intakeRollersEast.setControl(intakeRollerEastFollower); | ||
| } |
| public static final AngularVelocity INTAKE_TRANSFER_SPEED = Units.RPM.of(3000); | ||
| public static final AngularVelocity SERIALIZER_SHOOTING_SPEED = Units.RPM.of(4000); | ||
| public static final double SERIALIZER_SHOOTING_SPEED = 1; | ||
| public static final AngularVelocity STOP_ALL = Units.RPM.of(0); |
| @Override | ||
| public void initialize() { | ||
| RobotContainer.motionInstance.setIntakePivotAngle(ConstMotion.INTAKE_PIVOT_DEPLOY); | ||
| RobotContainer.rotorsInstance.setIntakeRollersSpeed(0.5); |
Member
There was a problem hiding this comment.
why hardcoded? should be in constants
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.