Class QueueLightshow

All Implemented Interfaces:
Sendable, Subsystem

public abstract class QueueLightshow extends Lightshow
A lightshow that changes color when a State transitions from inactive to active.

All states that return true on a call to State.isActive() are pushed to a deque. States are only removed from the deque if they are at the front and State.isActive() returns false. When a state is removed, the next one will be activated if State.isActive() returns true, until either a state returns true upon a call to State.isActive(), in which the color will be used, or there are no states where State.isActive() return true, then the default color is used.

For example usage, see FRC Team 2813's 2024 robot code.

  • Constructor Details

    • QueueLightshow

      public QueueLightshow(Class<T> enumClass)
    • QueueLightshow

      public QueueLightshow(Set<State> states)
  • Method Details