Skip to content

Dcmp#225

Open
Jetblackdragon wants to merge 72 commits intomainfrom
DCMP
Open

Dcmp#225
Jetblackdragon wants to merge 72 commits intomainfrom
DCMP

Conversation

@Jetblackdragon
Copy link
Copy Markdown
Contributor

missing some ds commits will be added monday

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates robot path parameters, increases drivebase acceleration, and refines launcher and turret control logic. Key changes include switching the turret to position-based control, updating PID gains and current limits across several subsystems, and adding sticky fault clearing to motor initializations. The vision subsystem was simplified by removing the intake pivot dependency, and vendor dependencies were updated. Feedback focuses on resolving command conflicts in trigger bindings and parallel groups within Controls.java, ensuring consistent indexer speed calculations, and optimizing Limelight configuration updates in the robot's disabled state.

Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Controls.java Outdated
Comment thread src/main/java/frc/robot/Robot.java
Comment on lines +32 to +33
double fRPS = flywheelRPS.getAsDouble() * 0.83 + 15;
double sRPS = Math.min(fRPS * 1.5, 70);
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.

medium

These magic numbers (0.83, 15, 1.5, 70) used for calculating indexer speeds should be defined as named constants in the class or a configuration file to improve maintainability and clarity.

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.

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

they are magic numbers Tristan came up with

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 really magic - they're the ratios to get fuel to transition more smoothly between spindexer, feeder & flywheel by having it not suddenly change velocity at the transition points. But I'm not sure what you'd call them, as they're essentially the a and b in the output = a + bx equation. Just having a comment before each equation explaining what it does would likely be better.

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.

Agree - a comment explaining here would be sufficient.

Comment on lines +32 to +33
double fRPS = flywheelRPS.getAsDouble() * 0.83 + 15;
double sRPS = Math.min(fRPS * 1.5, 70);
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.

+1

Comment thread src/main/java/frc/robot/subsystems/launcher/Flywheels.java
public Command setVelocityCommand(double rps) {
return runEnd(
() -> {
request.Velocity = rps;
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.

Since this code is the same as setVelocityRPS(), just replace this with a call to that method.

Comment thread src/main/java/frc/robot/Controls.java
config.MotorOutput.Inverted = InvertedValue.Clockwise_Positive;
applyConfig(flywheelTwo, config);

// flywheelTwo.setControl(new Follower(Hardware.FLYWHEEL_ONE_ID, MotorAlignmentValue.Opposed));
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.

Remove dead code

Comment thread src/main/java/frc/robot/Robot.java
Comment thread src/main/java/frc/robot/Robot.java
@RobototesProgrammers RobototesProgrammers linked an issue Apr 15, 2026 that may be closed by this pull request
jamesdooley4
jamesdooley4 previously approved these changes Apr 15, 2026
Copy link
Copy Markdown
Member

@jamesdooley4 jamesdooley4 left a comment

Choose a reason for hiding this comment

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

Some minor comments to cleanup

Comment thread src/main/java/frc/robot/subsystems/launcher/LaunchCalculator.java Outdated
Comment thread src/main/java/frc/robot/subsystems/launcher/TurretSubsystem.java Outdated
Comment thread src/main/java/frc/robot/subsystems/launcher/TurretSubsystem.java Outdated
Comment thread src/main/java/frc/robot/subsystems/auto/AutoLogic.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

7 participants