Repository navigation
Worlds - #29
Merged
Merged
Worlds#29
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the robot’s “Worlds” configuration by enabling LED feedback paths, adjusting intake/hood behavior, and refreshing Choreo auto trajectory assets and metadata.
Changes:
- Wired up
LEDSubsystemusage across robot modes and superstructure readiness/eject states. - Updated intake pivot behaviors (jostle feed + added “full stow”) and adjusted hood safe angle.
- Added/updated/removed Choreo trajectories and updated the generated
ChoreoTrajregistry.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/java/frc/robot/subsystems/Superstructure.java | Instantiates LEDs, exposes getter, and ties LED color changes to readiness/eject behavior. |
| src/main/java/frc/robot/subsystems/LEDSubsystem.java | Changes solid color behavior (darkening) and adds darken() helper. |
| src/main/java/frc/robot/subsystems/IntakeSubsystem.java | Changes feed behavior to jostle; adds full stow vs partial stow. |
| src/main/java/frc/robot/subsystems/HopperSubsystem.java | Enables stator current limit configuration. |
| src/main/java/frc/robot/subsystems/HoodSubsystem.java | Updates MAX_SAFE_ANGLE. |
| src/main/java/frc/robot/RobotContainer.java | Exposes LEDs via getLEDs() for Robot-level mode coloring. |
| src/main/java/frc/robot/Robot.java | Schedules LED colors in auto/teleop; attempts to set disable LEDs. |
| src/main/java/frc/robot/controls/OperatorControls.java | Adds LED color calls for zone transitions; adds POV binding for full stow. |
| src/main/java/frc/robot/Constants.java | Updates LED constants/colors and turret offsets. |
| src/main/java/frc/robot/commands/ShootOnTheMoveCommand.java | Reintroduces LED constants/subsystem references. |
| src/main/java/frc/robot/auto/ChoreoTraj.java | Replaces/updates auto trajectory definitions and the ALL_TRAJECTORIES map. |
| src/main/deploy/choreo/RightBasicNoIntake.traj | Updates the stored trajectory sample/waypoints and event timestamps. |
| src/main/deploy/choreo/RightBasic.traj | Updates the stored trajectory sample/waypoints and event configuration. |
| src/main/deploy/choreo/LeftBasicNoIntake.traj | Adds a new trajectory asset. |
| src/main/deploy/choreo/LeftBasic.traj | Removes an old trajectory asset. |
| src/main/deploy/choreo/IntakeTest.traj | Removes an old test trajectory asset. |
| src/main/deploy/choreo/CenterDepotOutpost.traj | Adds a new multi-waypoint trajectory asset with events. |
| src/main/deploy/choreo/CenterBack.traj | Adds a new trajectory asset with events. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+77
to
+78
| isReadyToShoot.onTrue(leds.setAllSolidColor(LEDConstants.onTargetColor)); | ||
| isReadyToShoot.onFalse(leds.setAllSolidColor(LEDConstants.sotmOnColor)); |
Comment on lines
65
to
73
| superstructure.getStateManager().inDecapitationZoneTrigger.onTrue( | ||
| Commands.runOnce(() -> { | ||
| if (shooting) { | ||
| Sotm.end(true); | ||
| operatorOveride = false; | ||
| } | ||
| inZone = true; | ||
| superstructure.getLEDs().setAllSolidColor(LEDConstants.decapColor); | ||
| })); |
Comment on lines
75
to
90
| @@ -82,6 +84,7 @@ | |||
|
|
|||
| Sotm.schedule(); | |||
| operatorOveride = true; | |||
| superstructure.getLEDs().setAllSolidColor(LEDConstants.sotmOnColor); | |||
| } | |||
| inZone = false; | |||
| })); | |||
| @Override | ||
| public void disabledInit() { | ||
| //leds.setAllSolidColor(LEDConstants.disableColor).execute(); //we are criminals | ||
| leds.setAllSolidColor(LEDConstants.disableColor).execute(); //we are criminals |
Comment on lines
58
to
62
| public Command setAllSolidColor(Color color) { | ||
| return Commands.run(() -> { | ||
| buffer = solidColor(allLEDs, color); | ||
| buffer = solidColor(allLEDs, darken(color)); | ||
| }); // i dont even know why buffer is reassigned, this makes no sense | ||
| } |
Comment on lines
+170
to
+176
| public Color darken(Color color){ | ||
| // return color; | ||
| double factor = 0.1 * 255; | ||
|
|
||
| return new Color(Math.max((int)(color.red * factor), 0), | ||
| Math.max((int)(color.green * factor), 0), | ||
| Math.max((int)(color.blue * factor), 0)); |
| {"name":"feedAllCommand", "from":{"target":1, "targetTimestamp":3.12472, "offset":{"exp":"0 s", "val":0.0}}, "event":{"type":"named", "data":{"name":"feedAllCommand"}}}] | ||
| {"name":"ShootOnTheMoveCommand", "from":{"target":1, "targetTimestamp":3.05139, "offset":{"exp":"0 s", "val":0.0}}, "event":{"type":"named", "data":{"name":"ShootOnTheMoveCommand"}}}, | ||
| {"name":"feedAllCommand", "from":{"target":1, "targetTimestamp":3.05139, "offset":{"exp":"0 s", "val":0.0}}, "event":{"type":"named", "data":{"name":"feedAllCommand"}}}, | ||
| {"name":"intakeDeployCommand", "from":{"target":0, "targetTimestamp":null, "offset":{"exp":"0 s", "val":0.0}}, "event":{"type":"named", "data":{"name":"intakeDeployCommand"}}}] |
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.