Skip to content

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

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