Skip to content

R2 73 implement run animation#23

Merged
rhit-halseysh merged 4 commits intomainfrom
R2-73-implement-run-animation
Feb 2, 2026
Merged

R2 73 implement run animation#23
rhit-halseysh merged 4 commits intomainfrom
R2-73-implement-run-animation

Conversation

@GhostR406
Copy link
Collaborator

Please work ( or something like that ).

public class LEDs extends SubsystemBase {
private final LightsIO _io;
private final LightsIO _io;
private final CANdle _candle;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Very close to what we want, but I might not have told you the right type. If you look under src\main\java\frc\lib\W8\devices, what class might work here to run our animations

}
public LEDs(LightsIO io) {
_io = io;
_candle = new CANdle(1, "rio");
Copy link
Collaborator

Choose a reason for hiding this comment

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

you shouldn't have to instantiate a new CANdle, it should be taken care of when we actually create the subsystem in robot container

public Command runAnimation() {
return this.startEnd(
() -> _candle.setControl(LEDConstants.rainbowAnim.withSlot(0).withColor(LEDConstants.colorPaleBlue)),
() -> _candle.setControl(new SolidColor(0, 3).withColor(colorWheezerBlue))
Copy link
Collaborator

Choose a reason for hiding this comment

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

After you change out the mechanism, these will have to be updated. Make sure you run a build to catch any errors

@rhit-halseysh rhit-halseysh merged commit 1948fba into main Feb 2, 2026
@rhit-halseysh rhit-halseysh deleted the R2-73-implement-run-animation branch February 2, 2026 21:36
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