Package com.ctre.phoenix6.signals
Enum Class ConnectedMotorValue
- All Implemented Interfaces:
Serializable
,Comparable<ConnectedMotorValue>
,java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTalon is connected to a third party brushed DC motor with leads A and B.Talon is connected to a third party brushed DC motor with leads A and C.Talon is connected to a third party brushed DC motor with leads B and C.Talon is attached to an integrated Falcon motor.Talon is attached to an integrated Kraken X44 motor.Talon is attached to an integrated Kraken X60 motor.Talon is connected to a CTR Electronics MinionĀ® brushless three phase motor.Talon is connected to a third party NEO brushless three phase motor.Talon is connected to a third party NEO550 brushless three phase motor.Talon could not determine the type of motor attached.Talon is connected to a third party VORTEX brushless three phase motor. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectedMotorValue
valueOf
(int value) Gets ConnectedMotorValue from specified valuestatic ConnectedMotorValue
Returns the enum constant of this class with the specified name.static ConnectedMotorValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unknown
Talon could not determine the type of motor attached. -
Falcon500_Integrated
Talon is attached to an integrated Falcon motor. -
KrakenX60_Integrated
Talon is attached to an integrated Kraken X60 motor. -
KrakenX44_Integrated
Talon is attached to an integrated Kraken X44 motor. -
Minion_JST
Talon is connected to a CTR Electronics MinionĀ® brushless three phase motor. -
Brushed_AB
Talon is connected to a third party brushed DC motor with leads A and B. -
Brushed_AC
Talon is connected to a third party brushed DC motor with leads A and C. -
Brushed_BC
Talon is connected to a third party brushed DC motor with leads B and C. -
NEO_JST
Talon is connected to a third party NEO brushless three phase motor. -
NEO550_JST
Talon is connected to a third party NEO550 brushless three phase motor. -
VORTEX_JST
Talon is connected to a third party VORTEX brushless three phase motor.
-
-
Field Details
-
value
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
valueOf
Gets ConnectedMotorValue from specified value- Parameters:
value
- Value of ConnectedMotorValue- Returns:
- ConnectedMotorValue of specified value
-