Package frc.robot.commands.leds
Class MorseCodeStream
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.leds.MorseCodeStream
- All Implemented Interfaces:
Sendable
Command to flash the LED strip between 2 colors
DOES NOT WORK YET
-
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
ConstructorsConstructorDescriptionMorseCodeStream(LEDs leds, String word) Command to flash the LED strip between 2 colorsMorseCodeStream(LEDs leds, String word, Color color) Command to flash the LED strip between 2 colors -
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, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
MorseCodeStream
Command to flash the LED strip between 2 colors- Parameters:
leds- LED Subsystemword- The word or sentence to flash in Morse Codecolor- The color to flash
-
MorseCodeStream
Command to flash the LED strip between 2 colors- Parameters:
leds- LED Subsystemword- The word or sentence to flash in Morse Code
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classCommand
-
execute
public void execute() -
isFinished
public boolean isFinished()- Overrides:
isFinishedin classCommand
-
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabledin classCommand
-