Enum Class LarsonBounceValue

java.lang.Object
java.lang.Enum<LarsonBounceValue>
com.ctre.phoenix6.signals.LarsonBounceValue
All Implemented Interfaces:
Serializable, Comparable<LarsonBounceValue>, java.lang.constant.Constable

The behavior of the larson animation pocket of light when it reaches the end of the strip.
  • Enum Constant Details

    • Front

      public static final LarsonBounceValue Front
      The animation bounces as soon as the first LED reaches the end of the strip.
    • Center

      public static final LarsonBounceValue Center
      The animation bounces once it is midway through the end of the strip.
    • Back

      public static final LarsonBounceValue Back
      The animation bounces once all LEDs are off the strip.
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static LarsonBounceValue[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LarsonBounceValue valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static LarsonBounceValue valueOf(int value)
      Gets LarsonBounceValue from specified value
      Parameters:
      value - Value of LarsonBounceValue
      Returns:
      LarsonBounceValue of specified value