Enum Class ConnectedMotorValue

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

public enum ConnectedMotorValue extends Enum<ConnectedMotorValue>
The type of motor attached to the Talon.

This can be used to determine what motor is attached to the Talon FX. Return will be "Unknown" if firmware is too old or device is not present.

  • Enum Constant Details

    • Unknown

      public static final ConnectedMotorValue Unknown
      Talon could not determine the type of motor attached.
    • Falcon500_Integrated

      public static final ConnectedMotorValue Falcon500_Integrated
      Talon is attached to an integrated Falcon motor.
    • KrakenX60_Integrated

      public static final ConnectedMotorValue KrakenX60_Integrated
      Talon is attached to an integrated Kraken X60 motor.
    • KrakenX44_Integrated

      public static final ConnectedMotorValue KrakenX44_Integrated
      Talon is attached to an integrated Kraken X44 motor.
    • Minion_JST

      public static final ConnectedMotorValue Minion_JST
      Talon is connected to a CTR Electronics MinionĀ® brushless three phase motor.
    • Brushed_AB

      public static final ConnectedMotorValue Brushed_AB
      Talon is connected to a third party brushed DC motor with leads A and B.
    • Brushed_AC

      public static final ConnectedMotorValue Brushed_AC
      Talon is connected to a third party brushed DC motor with leads A and C.
    • Brushed_BC

      public static final ConnectedMotorValue Brushed_BC
      Talon is connected to a third party brushed DC motor with leads B and C.
    • NEO_JST

      public static final ConnectedMotorValue NEO_JST
      Talon is connected to a third party NEO brushless three phase motor.
    • NEO550_JST

      public static final ConnectedMotorValue NEO550_JST
      Talon is connected to a third party NEO550 brushless three phase motor.
    • VORTEX_JST

      public static final ConnectedMotorValue VORTEX_JST
      Talon is connected to a third party VORTEX brushless three phase motor.
    • CustomBrushless

      public static final ConnectedMotorValue CustomBrushless
      Talon is connected to a custom brushless three phase motor. This requires that the device is not FRC-Locked.
  • Field Details

    • value

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

    • values

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