Skip to content

Commit

Permalink
some (hopefully) final tweaks
Browse files Browse the repository at this point in the history
ive been working on this for 2 1/2 hours i need sleep
  • Loading branch information
quackitsquinn committed Apr 1, 2024
1 parent 03f7409 commit 8192c19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ public static final class Colors {
/** The color for the lights when the robot is disabled. */
public static final Color DISABLED_COLOR = Color.fromHSV(15, 255, 100);

public static final Color BOOT_SEQUENCE_PULSE_COLOR = Color.fromHSV(0, 0, 255);

public static final Color ENABLE_COLOR_NO_ALLIANCE = Color.fromHSV(137, 255, 200);

public static final Color ENABLE_COLOR_BLUE_ALLIANCE = Color.fromHSV(120, 255, 200);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public void initialize() {
if (!firstStart) {
robotLights.setStripColor(Constants.LightStrips.Colors.DISABLED_COLOR);
robotLights.flush();
} else {
robotLights.setFadeSpeed(0.01);
}
robotLights.startLights();
}
Expand All @@ -52,7 +54,7 @@ public void execute() {
robotLights.flush();
if ((rainbowTick >= robotLights.getLength() * 2)) {
firstStart = false;
robotLights.setStripColorRaw(Color.kGhostWhite);
robotLights.setStripColorRaw(Constants.LightStrips.Colors.BOOT_SEQUENCE_PULSE_COLOR);
robotLights.setStripColor(Constants.LightStrips.Colors.DISABLED_COLOR);
}
ledCount = Math.min(ledCount + 1, robotLights.getLength());
Expand All @@ -63,6 +65,7 @@ public void execute() {
@Override
public void end(boolean interrupted) {
firstStart = false;
robotLights.resetFadeSpeed();
}

@Override
Expand Down

0 comments on commit 8192c19

Please sign in to comment.