Package frc.robot.commands.leds
Class FireLEDs
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.leds.FireLEDs
- 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
Constructors -
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
-
FireLEDs
Command to make a fire-esque display for a single column of LEDs- Parameters:
leds- The LED subsystemcooling- Indicates how fast a flame cools down. More cooling means shorter flames.sparking- Indicates the chance (out of 255) that a spark will ignite. A higher value makes the fire more active.speedDelay- Delay in ms. Allows you to slow down the fire activity ... a higher value makes the flame appear slower
-
FireLEDs
Command to make a fire-esque display for a single column of LEDs- 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
-