Package com.ctre.phoenix6.mechanisms
Enum Class DifferentialMotorConstants.DifferentialCANdiSource
java.lang.Object
java.lang.Enum<DifferentialMotorConstants.DifferentialCANdiSource>
com.ctre.phoenix6.mechanisms.DifferentialMotorConstants.DifferentialCANdiSource
- All Implemented Interfaces:
Serializable,Comparable<DifferentialMotorConstants.DifferentialCANdiSource>,Constable
- Enclosing class:
- DifferentialMotorConstants<MotorConfigsT extends ParentConfiguration>
public static enum DifferentialMotorConstants.DifferentialCANdiSource
extends Enum<DifferentialMotorConstants.DifferentialCANdiSource>
Sensor sources for a differential CTR Electronics' CANdi⢠branded device.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse a pulse-width encoder remotely attached to the Sensor Input 1 (S1IN).Use a pulse-width encoder remotely attached to the Sensor Input 2 (S2IN).Use a quadrature encoder remotely attached to the two Sensor Inputs. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PWM1
Use a pulse-width encoder remotely attached to the Sensor Input 1 (S1IN). -
PWM2
Use a pulse-width encoder remotely attached to the Sensor Input 2 (S2IN). -
Quadrature
Use a quadrature encoder remotely attached to the two Sensor Inputs.
-
-
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
-