Package com.ctre.phoenix.motorcontrol
Enum Class FeedbackDevice
- All Implemented Interfaces:
Serializable
,Comparable<FeedbackDevice>
,java.lang.constant.Constable
Choose the feedback device for a selected sensor. Consult product-specific documentation to determine what is available/supported for your device.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAnalog potentiometer/encoderCTR mag encoder configured in absolute, is the same as a PWM sensor.CTR mag encoder configured in relative, is the same as an quadrature encoder sensor.Position and velocity will read 0.CTRE Mag Encoder in Relative mode or any other device that uses PWM to encode its outputQuadrature encoderSensor configured in RemoteFilter0Sensor configured in RemoteFilter1Diff0 - Diff1Sum0 + Sum1Motor Controller will fake a sensor based on applied motor output.Tachometer -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static FeedbackDevice
valueOf
(double value) Get FeedbackDevice from specified valuestatic FeedbackDevice
valueOf
(int value) Get FeedbackDevice from specified valuestatic FeedbackDevice
Returns the enum constant of this class with the specified name.static FeedbackDevice[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QuadEncoder
Quadrature encoder -
Analog
Analog potentiometer/encoder -
Tachometer
Tachometer -
PulseWidthEncodedPosition
CTRE Mag Encoder in Relative mode or any other device that uses PWM to encode its output -
SensorSum
Sum0 + Sum1 -
SensorDifference
Diff0 - Diff1 -
RemoteSensor0
Sensor configured in RemoteFilter0 -
RemoteSensor1
Sensor configured in RemoteFilter1 -
None
Position and velocity will read 0. -
SoftwareEmulatedSensor
Motor Controller will fake a sensor based on applied motor output. -
CTRE_MagEncoder_Absolute
CTR mag encoder configured in absolute, is the same as a PWM sensor. -
CTRE_MagEncoder_Relative
CTR mag encoder configured in relative, is the same as an quadrature encoder sensor.
-
-
Field Details
-
value
Value of Feedback Device
-
-
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
Get FeedbackDevice from specified value- Parameters:
value
- Value of FeedbackDevice- Returns:
- FeedbackDevice of specified value
-
valueOf
Get FeedbackDevice from specified value- Parameters:
value
- Value of FeedbackDevice- Returns:
- FeedbackDevice of specified value
-
toString
- Overrides:
toString
in classEnum<FeedbackDevice>
- Returns:
- string representation of specified FeedbackDevice
-