Skip to content

Nothing to see here#23

Merged
Orcasphynx merged 3 commits intodevelopmentfrom
main
Feb 20, 2026
Merged

Nothing to see here#23
Orcasphynx merged 3 commits intodevelopmentfrom
main

Conversation

@Orcasphynx
Copy link
Collaborator

No description provided.

@Orcasphynx Orcasphynx merged commit 8732944 into development Feb 20, 2026
2 checks passed
@github-actions
Copy link

AI Code Review

Hello team!

This PR looks like a great step towards improving our autonomous capabilities and making our drive tuning more flexible. I see a lot of thoughtful changes here!

Positive Highlights

  • PathPlanner Integration with Named Commands: Registering a NamedCommand for "Seed" and using it in PathPlanner autos is an excellent practice. It clearly defines a reusable action for autonomous routines.
  • Configurable PID Constants: Moving PID constants to DriveConstants and then making them tunable via DrivePreferences (and thus NetworkTables) is fantastic. This will make tuning the drive more efficient and less reliant on code changes.
  • Debugging Visibility: Adding SmartDashboard outputs for the current preference values is a simple but very effective way to confirm that our preferences are being read correctly.

Suggestions

FRC/WPILib Best Practices

  • Match Logging in RobotContainer.java:
    • File: src/main/java/frc/robot/RobotContainer.java
    • Context: The team guidelines mention explicitly logging match events in autonomousInit() and teleopInit(). Your RobotContainer already has these methods, but they don't include the specific Logger.recordOutput calls.
    • Suggestion: Consider adding lines like Logger.recordOutput("Match/AutonomousStart", Timer.getFPGATimestamp()); to autonomousInit() and Logger.recordOutput("Match/TeleopStart", Timer.getFPGATimestamp()); to ensure we capture these critical match events for later analysis. This helps us understand the timeline of our robot's performance during a match.

Code Quality

  • NetworkTables Backup File:
    • File: networktables.json.bck
    • Context: This file appears to be a backup of the networktables.json file. While it serves a purpose during development, typically backup files like .bck are not committed to version control. If it's intended to be the source of truth for NetworkTables preferences, it should likely be named networktables.json.
    • Suggestion: If networktables.json.bck is purely a backup, consider adding it to your .gitignore file to keep the repository clean. If it's meant to be the main configuration, it might be helpful to rename it to networktables.json and ensure it's the file our tools are using.

PathPlanner Specifics

  • Rotation Simple.path Waypoints:
    • File: src/main/deploy/pathplanner/paths/Rotation Simple.path
    • Context: I noticed that the anchor points for both waypoints in Rotation Simple.path are identical (x: 3.5, y: 7.0). While PathPlanner can handle in-place rotations, sometimes identical anchor points can lead to unexpected path generation, especially if the control points aren't carefully managed.
    • Suggestion: Just double-check that this path behaves as expected on the robot. If you encounter any issues with the robot's movement during this rotation, you might consider slightly offsetting one of the anchor points (e.g., by a millimeter) to give PathPlanner a clearer distinction between the start and end of the path segment, while still achieving an in-place rotation.

Questions

  • DrivetrainSubsystem.java - configureAutoBuilder(): I see SmartDashboard.putNumber("What we think it is", DrivePreferences.translation_kP.getValue()); inside the try block of configureAutoBuilder(). Is there a specific reason it's placed there, or was it primarily for debugging the preference loading? If it's purely for debugging, we might remove it once confirmed working, or move it to a periodic() method if we want to monitor it continuously.

Overall, this is a solid PR that brings some great improvements to our robot's autonomous and tuning capabilities! Keep up the excellent work!


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

@github-actions
Copy link

✓ Build successful and code formatting check passed!

@y0shi
Copy link
Member

y0shi commented Feb 20, 2026

Nothing at all ....

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