Skip to content

Commit

Permalink
Auto-aim LED blink speed
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 28, 2024
1 parent d8d6319 commit 50af414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/commands/leds/DefaultLED.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ public void execute() {
switch (UtilFuncs.GetLEDs()) {
case DEFAULT:
_leds.setColor(UtilFuncs.GetAlliance() == Alliance.Red ? LEDColors.RED : LEDColors.BLUE);
// leds.rainbow();
break;

case AIM:
if (!_isAimed.getAsBoolean()) {
_leds.blink(Constants.LEDColors.YELLOW, Constants.LEDColors.NOTHING, 1);
_leds.blink(Constants.LEDColors.YELLOW, Constants.LEDColors.NOTHING, 0.2);
} else {
_leds.setColor(Constants.LEDColors.GREEN);
}
Expand Down

0 comments on commit 50af414

Please sign in to comment.