Package frc.robot.commands
Class MovingColorLEDs
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.MovingColorLEDs
- All Implemented Interfaces:
Sendable
Command to move LEDs back and forth like a Cylon eye
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionMovingColorLEDs
(LEDs leds, Color color, int count, boolean inverted) Command to move LEDs back and forth like a Cylon eye -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, end, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
MovingColorLEDs
Command to move LEDs back and forth like a Cylon eye- Parameters:
leds
- LED subsystemcolor
- Color to which to set the LEDscount
- The number of LEDs in the moving dot. Best is an odd number.inverted
- Whether to invert the Color that moves.
-
-
Method Details
-
execute
public void execute() -
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabled
in classCommand
-