Skip to content

5/29 Testing Changes - #15

Closed
Wu-Fan-529 wants to merge 1 commit into
mainfrom
5/29-testing
Closed

5/29 Testing Changes#15
Wu-Fan-529 wants to merge 1 commit into
mainfrom
5/29-testing

Conversation

@Wu-Fan-529

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2026 16:27
@Wu-Fan-529
Wu-Fan-529 requested a review from a team as a code owner May 30, 2026 16:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

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.

Its following itself

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 TaylerUva 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.

Conflicts

@TaylerUva TaylerUva 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.

No need to change device variable names

Should shooting set the flywheel speed? what part actually makes it "shoot"?

Comment thread src/main/java/frc/robot/subsystems/Rotors.java
Comment on lines +114 to +117
public void setIntakeRollersSpeed(double speed) {
intakeRollersWest.set(speed);
intakeRollersEast.setControl(intakeRollerEastFollower);
}

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.

Its following itself

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

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.

not a good name

@Override
public void initialize() {
RobotContainer.motionInstance.setIntakePivotAngle(ConstMotion.INTAKE_PIVOT_DEPLOY);
RobotContainer.rotorsInstance.setIntakeRollersSpeed(0.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.

why hardcoded? should be in constants

@TaylerUva TaylerUva closed this May 30, 2026
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.

4 participants