Package com.ctre.phoenix6.signals
Enum Class BrushedMotorWiringValue
- All Implemented Interfaces:
Serializable
,Comparable<BrushedMotorWiringValue>
,java.lang.constant.Constable
If a brushed motor is selected with Motor Arrangement, this config determines
which of three leads to use.
-
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.Third party brushed DC motor with two leads.Third party brushed DC motor with two leads. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BrushedMotorWiringValue
valueOf
(int value) Gets BrushedMotorWiringValue from specified valuestatic BrushedMotorWiringValue
Returns the enum constant of this class with the specified name.static BrushedMotorWiringValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Leads_A_and_B
Third party brushed DC motor with two leads. Motor leads: Use terminal A for the motor red lead and terminal B for the motor black lead (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]. -
Leads_A_and_C
Third party brushed DC motor with two leads. Motor leads: Use terminal A for the motor red lead and terminal C for the motor black lead (motor leads may be flipped to correct for clockwise vs counterclockwise). Note that the invert configuration can still be used to reverse 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]. -
Leads_B_and_C
Third party brushed DC motor with two leads. Motor leads: Use terminal B for the motor red lead and terminal C for the motor black lead (motor leads may be flipped to correct for clockwise vs counterclockwise). Note that the invert configuration can still be used to reverse 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].
-
-
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 BrushedMotorWiringValue from specified value- Parameters:
value
- Value of BrushedMotorWiringValue- Returns:
- BrushedMotorWiringValue of specified value
-