Skip to content

Commit

Permalink
added new constructors that dont require opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
penguin212 committed Apr 20, 2023
1 parent 6b5768e commit e780400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/subsystems/leds/LEDSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public void periodic() {
// Update baseLayer - the piece color indicated by the mech driver, or the blink color if a piece
// is held and we are blinking.
Color baseColor = blinking ? BLINK_COLOR : pieceColor;
baseLayer.fillColor(baseColor, 1);
baseLayer.fillColor(baseColor);

// Update manualColorLayer - the manual color set by the mech driver in manual mode.
if (manual) {
manualColorLayer.incrementColors(inc, manualColor, 1);
manualColorLayer.incrementColors(inc, manualColor);
} else {
manualColorLayer.reset();
}
Expand All @@ -111,9 +111,9 @@ public void periodic() {

// Update aprilDetectedLayer - white pulses to indicate an april tag detection.
if (!aprilBlinkTimer.hasElapsed(APRIL_BLINK_DURATION_SECONDS) && aprilBlinkTimer.hasStarted()) {
aprilDetectedLayer.incrementColors(inc, APRIL_COLOR, 1);
aprilDetectedLayer.incrementColors(inc, APRIL_COLOR);
} else {
aprilDetectedLayer.incrementColors(inc, null, 1);
aprilDetectedLayer.incrementColors(inc, null);
}

// Add layers to buffer, set leds
Expand Down

0 comments on commit e780400

Please sign in to comment.