Package frc.robot.commands.leds
Class PoliceLEDs
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.leds.PoliceLEDs
- All Implemented Interfaces:
Sendable
Command to flash the LED strip between red and blue like police lights
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
ConstructorsConstructorDescriptionPoliceLEDs(LEDs leds) Command to flash the LED strip between red and blue like police lights -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, end, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
PoliceLEDs
Command to flash the LED strip between red and blue like police lights- Parameters:
leds- LED subsystem
-
-
Method Details
-
execute
public void execute() -
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabledin classCommand
-