Package frc.robot.commands.leds
Class MorseCodeFlash
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.leds.MorseCodeFlash
- All Implemented Interfaces:
Sendable
Command to flash the LED strip between 2 colors
-
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
ConstructorsConstructorDescriptionMorseCodeFlash(LEDs leds, String word) Command to flash the LED strip between 2 colorsMorseCodeFlash(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
-
MorseCodeFlash
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
-
MorseCodeFlash
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
-