Enum Class FeedbackDevice

java.lang.Object
java.lang.Enum<FeedbackDevice>
com.ctre.phoenix.motorcontrol.FeedbackDevice
All Implemented Interfaces:
Serializable, Comparable<FeedbackDevice>, java.lang.constant.Constable

public enum FeedbackDevice extends Enum<FeedbackDevice>
Choose the feedback device for a selected sensor. Consult product-specific documentation to determine what is available/supported for your device.
  • Enum Constant Details

  • Field Details

    • value

      public final int value
      Value of Feedback Device
  • Method Details

    • values

      public static FeedbackDevice[] 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 FeedbackDevice 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 FeedbackDevice valueOf(int value)
      Get FeedbackDevice from specified value
      Parameters:
      value - Value of FeedbackDevice
      Returns:
      FeedbackDevice of specified value
    • valueOf

      public static FeedbackDevice valueOf(double value)
      Get FeedbackDevice from specified value
      Parameters:
      value - Value of FeedbackDevice
      Returns:
      FeedbackDevice of specified value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FeedbackDevice>
      Returns:
      string representation of specified FeedbackDevice