Skip to content

Finished testing#81

Merged
Orcasphynx merged 2 commits intodevelopmentfrom
testing/April-3
Apr 4, 2026
Merged

Finished testing#81
Orcasphynx merged 2 commits intodevelopmentfrom
testing/April-3

Conversation

@Orcasphynx
Copy link
Copy Markdown
Collaborator

No description provided.

@Orcasphynx Orcasphynx requested a review from y0shi April 4, 2026 01:48
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

AI Code Review

Hey team!

Great work on this pull request! It looks like you've been busy testing and tuning, which is fantastic. The changes show a clear effort towards refining your robot's performance and making testing more accessible.

Positive Highlights

  1. SysId Integration: Moving the SysId routines to SmartDashboard is a really smart move! It makes them easily accessible for on-the-fly testing without needing to recompile or change controller bindings, which is super efficient.
  2. PID Tuning & Limits: It's great to see constant values being updated in IntakeConstants and ShooterConstants. This iterative tuning process is key to getting robust and accurate mechanism control. The addition of kI for the intake extension suggests a thoughtful approach to control.
  3. Code Cleanup: I appreciate the removal of commented-out blocks in RobotContainer.java. Keeping the codebase clean and free of dead code makes it much easier for everyone to read and understand.

Suggestions

Here are a few suggestions to consider as you continue to refine the code:

Code Quality & Readability

  • RobotContainer.java - Line 174 (and others): I noticed there are still some large commented-out blocks in configureTeleopBindings(). While it's great that the configureTestBindings method was removed, these remaining commented sections can still make the code a bit harder to read.
    • Consider: If these blocks are old code that's no longer used, it might be helpful to simply remove them. If they represent experimental features you might come back to, you could consider putting them in a separate ExperimentalCommands.java file or a dedicated feature branch. This keeps the main RobotContainer clean and focused on the current robot functionality.

FRC/WPILib Best Practices

  • RobotContainer.java - Line 266 (and similar operatorJoystick bindings): You're using Commands.runOnce(() -> LaunchState.getInstance().setTargetPose3d(...)) directly in RobotContainer. This works perfectly fine!
    • Consider: For consistency with the "Command Factory Methods" guideline, LaunchState (your Superstructure/StateMachine) could expose methods like setTargetToHubCommand(), setTargetToLeftPassCommand(), etc. This would centralize the logic for these specific actions within the LaunchState class, making RobotContainer even cleaner and LaunchState more self-contained. For example: operatorJoystick.a().onTrue(launchState.setTargetToHubCommand());
  • IntakeConstants.java - Line 79 (createExtensionMotorSlot0Configs): You've added EXTENSION_KI to your constants, which is awesome for more precise control!
    • Consider: To utilize this new kI value, you'll want to add slot.kI = EXTENSION_KI; inside the createExtensionMotorSlot0Configs() method. This ensures that when Slot0 is configured, the integral gain is applied.

Java Standards & Documentation

  • IntakeConstants.java - Line 79 (createExtensionMotorSlot0Configs): It might be helpful to add a Javadoc comment to this method (and similar createSlotXConfigs methods).
    • Consider: Explaining what these constants (EXTENSION_KS, EXTENSION_KP, EXTENSION_KI, EXTENSION_KD) are intended for (e.g., "PID gains for the extension motor's position control") would provide great educational context and clarity for anyone reading the code, especially new team members.
  • ShooterConstants.java - Line 110 (and surrounding lines): There's a significant block of commented-out code related to hood limits and motor configs.
    • Consider: Similar to the RobotContainer suggestion, if this code is definitely not being used, removing it would improve readability. If it's a feature that's on hold or being re-evaluated, adding a comment like // TODO: Re-evaluate hood limits for future mechanism design could make its purpose clear.

Questions

  • For the commented-out hood constants in ShooterConstants.java, are these values or methods still relevant for a future iteration of the hood, or are they completely deprecated? Understanding their status helps decide whether to remove them or add specific context.

Overall, this is a solid pull request demonstrating active development and tuning. Keep up the fantastic work!


This review was automatically generated by AI. Please use your judgment and feel free to discuss any suggestions!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

✓ Build successful and code formatting check passed!

@Orcasphynx Orcasphynx merged commit fd6999c into development Apr 4, 2026
2 checks passed
@Orcasphynx Orcasphynx deleted the testing/April-3 branch April 4, 2026 13:33
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

✓ Build successful and code formatting check passed!

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.

1 participant