Package com.ctre.phoenix6.signals
Enum Class MotorArrangementValue
- All Implemented Interfaces:
Serializable
,Comparable<MotorArrangementValue>
,java.lang.constant.Constable
Selects the motor and motor connections used with Talon.
This setting determines what kind of motor and sensors are used with the Talon. This also determines what signals are used on the JST and Gadgeteer port.
Motor drive will not function correctly if this setting does not match the physical setup.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThird party brushed DC motor with two leads.Motor is not selected.CTR Electronics MinionĀ® brushless three phase motor.Third party NEO brushless three phase motor (~6000 RPM at 12V).Third party NEO550 brushless three phase motor (~11000 RPM at 12V).Third party VORTEX brushless three phase motor. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MotorArrangementValue
valueOf
(int value) Gets MotorArrangementValue from specified valuestatic MotorArrangementValue
Returns the enum constant of this class with the specified name.static MotorArrangementValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Disabled
Motor is not selected. This is the default setting to ensure the user has an opportunity to select the correct motor arrangement before attempting to drive motor. -
Minion_JST
CTR Electronics MinionĀ® brushless three phase motor. Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9]. -
Brushed_DC
Third party brushed DC motor with two leads. Use the Brushed Motor Wiring config to determine which leads to use on the Talon (motor leads may be flipped to correct for clockwise vs counterclockwise). Note that the invert configuration can still be used to invert rotor orientation. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9]. -
NEO_JST
Third party NEO brushless three phase motor (~6000 RPM at 12V). Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9]. -
NEO550_JST
Third party NEO550 brushless three phase motor (~11000 RPM at 12V). Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9]. -
VORTEX_JST
Third party VORTEX brushless three phase motor. Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9].
-
-
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 MotorArrangementValue from specified value- Parameters:
value
- Value of MotorArrangementValue- Returns:
- MotorArrangementValue of specified value
-