Update LED.java

This commit is contained in:
Keenan D. Buckley
2019-03-14 17:27:44 -06:00
parent a8e14a87d5
commit bd057897e6
2 changed files with 3 additions and 2 deletions
@@ -71,7 +71,7 @@ public class OI
safteySwitch.whenPressed(new setClimberSafety(true));
safteySwitch.whenPressed(new setLEDPattern(LEDPatterns.SOLID_YELLOW));
safteySwitch.whenReleased(new setClimberSafety(false));
safteySwitch.whenPressed(new setLEDPattern(LEDPatterns.C1_HEARTBEAT_SLOW));
safteySwitch.whenPressed(new setLEDPattern(LEDPatterns.C1_HEARTBEAT_FAST));
JoystickButton climbUp = new JoystickButton(m_driverXbox.getJoyStick(), XboxController.RIGHT_TRIGGER_AXIS);
JoystickButton climbDown = new JoystickButton(m_driverXbox.getJoyStick(), XboxController.LEFT_TRIGGER_AXIS);
@@ -24,7 +24,8 @@ import edu.wpi.first.wpilibj.command.Subsystem;
public static Spark LEDController = new Spark(LED_SPARK_ID);
public LED(){
setPattern(LEDPatterns.C1_HEARTBEAT_SLOW);
setPattern(LEDPatterns.C1_HEARTBEAT_FAST);
LEDController.set(currentLED);
}
public void periodic() {