Package com.ctre.phoenix.motorcontrol
Enum FeedbackDevice
- All Implemented Interfaces:
Serializable
,Comparable<FeedbackDevice>
,java.lang.constant.Constable
public enum FeedbackDevice extends Enum<FeedbackDevice>
Choose the feedback device for a selected sensor. Consult product-specific documentation to determine what is available/supported for your device.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Analog
Analog potentiometer/encoderCTRE_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.IntegratedSensor
TalonFX supports an integrated sensor.None
Position and velocity will read 0.PulseWidthEncodedPosition
CTRE Mag Encoder in Relative mode or any other device that uses PWM to encode its outputQuadEncoder
Quadrature encoderRemoteSensor0
Sensor configured in RemoteFilter0RemoteSensor1
Sensor configured in RemoteFilter1SensorDifference
Diff0 - Diff1SensorSum
Sum0 + Sum1SoftwareEmulatedSensor
Motor Controller will fake a sensor based on applied motor output.Tachometer
Tachometer -
Field Summary
Fields Modifier and Type Field Description int
value
Value of Feedback Device -
Method Summary
Modifier and Type Method Description String
toString()
static FeedbackDevice
valueOf(double value)
Get FeedbackDevice from specified valuestatic FeedbackDevice
valueOf(int value)
Get FeedbackDevice from specified valuestatic FeedbackDevice
valueOf(String name)
Returns the enum constant of this type with the specified name.static FeedbackDevice[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QuadEncoder
Quadrature encoder -
IntegratedSensor
TalonFX supports an integrated sensor. -
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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-