|
1 | | -// Copyright (c) FIRST and other WPILib contributors. |
2 | | -// Open Source Software; you can modify and/or share it under the terms of |
3 | | -// the WPILib BSD license file in the root directory of this project. |
4 | | - |
5 | 1 | package frc.robot; |
6 | 2 |
|
7 | 3 | import static edu.wpi.first.units.Units.*; |
|
21 | 17 | import frc.robot.subsystems.Algae.AlgaeInCommand; |
22 | 18 | import frc.robot.subsystems.Algae.AlgaeOutCommand; |
23 | 19 | import frc.robot.subsystems.Elevator.RunElevatorCommand; |
| 20 | +import frc.robot.subsystems.LED.LEDStateManager; |
| 21 | +import frc.robot.subsystems.LED.SetLEDAnimationCommand; |
| 22 | +import frc.robot.subsystems.LED.CustomAnimations.RainbowShootingLines; |
24 | 23 | import frc.robot.subsystems.Climber.SetClimbCommand; |
25 | 24 | import frc.robot.subsystems.Coral.Coral; |
26 | 25 | import frc.robot.subsystems.Coral.IntakeCommand; |
@@ -91,6 +90,7 @@ public static CommandXboxController getDriverController() { |
91 | 90 | public Command pathfindingCommand; |
92 | 91 |
|
93 | 92 | public RobotContainer() { |
| 93 | + // LEDStateManager.getInstance().setDefault(); |
94 | 94 |
|
95 | 95 | NamedCommands.registerCommand("IntakeCommand", new AutoIntakeCommand()); |
96 | 96 | NamedCommands.registerCommand("PlaceCommand", new PlaceCommand()); |
@@ -197,6 +197,20 @@ private void configureBindings() { |
197 | 197 | level4.onTrue(new RunElevatorCommand(ElevatorLevel.L4_HEIGHT)); |
198 | 198 | ElevatorReset.onTrue(new RunElevatorCommand(ElevatorLevel.RESET_HEIGHT)); |
199 | 199 |
|
| 200 | + // getDriverController().a().onTrue(new SetLEDAnimationCommand( |
| 201 | + // new RainbowShootingLines( |
| 202 | + // RainbowShootingLines.RainbowType.PASTEL_RAINBOW, |
| 203 | + // RainbowShootingLines.ColorDistribution.PER_LINE, |
| 204 | + // RainbowShootingLines.DirectionType.FORWARD, |
| 205 | + // 10, |
| 206 | + // 0, |
| 207 | + // 0, |
| 208 | + // 1, |
| 209 | + // 0, |
| 210 | + // true |
| 211 | + // ) |
| 212 | + // )); |
| 213 | + |
200 | 214 | drivetrain.registerTelemetry(logger::telemeterize); |
201 | 215 | } |
202 | 216 |
|
|
0 commit comments