Skip to content

Worlds - #29

Merged
dracco1993 merged 13 commits into
mainfrom
worlds
May 7, 2026
Merged

dracco1993 merged 13 commits into
mainfrom
worlds

Conversation

@dracco1993

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 7, 2026 22:52
@dracco1993
dracco1993 merged commit 2ecea5e into main May 7, 2026
1 check passed
@dracco1993
dracco1993 deleted the worlds branch May 7, 2026 22:52

Copilot AI left a comment

Copy link
Copy Markdown

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 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 LEDSubsystem usage 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 ChoreoTraj registry.

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"}}}]
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.

3 participants