Enum Class DeviceType

java.lang.Object
java.lang.Enum<DeviceType>
com.ctre.phoenix6.sim.DeviceType
All Implemented Interfaces:
Serializable, Comparable<DeviceType>, Constable

public enum DeviceType extends Enum<DeviceType>
Enumeration of all supported device types.
  • Enum Constant Details

    • TalonSRXType

      public static final DeviceType TalonSRXType
      TalonSRX
    • VictorSPXType

      public static final DeviceType VictorSPXType
      VictorSPX
    • PigeonIMUType

      public static final DeviceType PigeonIMUType
      PigeonIMU
    • RibbonPigeonIMUType

      public static final DeviceType RibbonPigeonIMUType
      Ribbon PigeonIMU
    • P6_TalonFXType

      public static final DeviceType P6_TalonFXType
      Phoenix 6 TalonFX
    • P6_CANcoderType

      public static final DeviceType P6_CANcoderType
      Phoenix 6 CANcoder
    • P6_Pigeon2Type

      public static final DeviceType P6_Pigeon2Type
      Phoenix 6 Pigeon2
    • P6_TalonFXSType

      public static final DeviceType P6_TalonFXSType
      Phoenix 6 TalonFXS
    • P6_CANrangeType

      public static final DeviceType P6_CANrangeType
      Phoenix 6 CANrange
    • P6_CANdiType

      public static final DeviceType P6_CANdiType
      Phoenix 6 CANdi
    • P6_CANdleType

      public static final DeviceType P6_CANdleType
      Phoenix 6 CANdle
  • Field Details

    • value

      public final int value
      Unique integer value of this DeviceType.
  • Method Details

    • values

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