Package frc.robot.commands.leds
Class BouncingBalls
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.leds.BouncingBalls
- 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 -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
ConstructorsConstructorDescriptionBouncingBalls(LEDs leds) Command to create a bouncing ball effectBouncingBalls(LEDs leds, int ballCount) Command to create a bouncing ball effectBouncingBalls(LEDs leds, int ballCount, Color[] colors) Command to create a bouncing ball effectBouncingBalls(LEDs leds, int ballCount, Color[] colors, int startHeight) Command to create a bouncing ball effect -
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, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
BouncingBalls
Command to create a bouncing ball effect- Parameters:
leds- The LED Subsystem.ballCount- The number of balls.colors- The color of the balls.startHeight- The height from which to drop the balls
-
BouncingBalls
Command to create a bouncing ball effect- Parameters:
leds- The LED Subsystem.ballCount- The number of balls.colors- The color of the balls.
-
BouncingBalls
Command to create a bouncing ball effect- Parameters:
leds- The LED Subsystem.ballCount- The number of balls.
-
BouncingBalls
Command to create a bouncing ball effect- Parameters:
leds- The LED Subsystem.
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classCommand
-
execute
public void execute() -
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabledin classCommand
-