Package com.ctre.phoenix.motorcontrol
Enum Class TalonSRXFeedbackDevice
- All Implemented Interfaces:
Serializable
,Comparable<TalonSRXFeedbackDevice>
,Constable
Choose the feedback device for a selected sensor
-
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 TypeMethodDescriptionHelper method to convert to generic FeedbackDevice enum.toString()
static TalonSRXFeedbackDevice
valueOf
(double value) Get TalonSRXFeedbackDevice from specified valuestatic TalonSRXFeedbackDevice
valueOf
(int value) Get TalonSRXFeedbackDevice from specified valuestatic TalonSRXFeedbackDevice
Returns the enum constant of this class with the specified name.static TalonSRXFeedbackDevice[]
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 TalonSRXFeedbackDevice from specified value- Parameters:
value
- Value of TalonSRXFeedbackDevice- Returns:
- TalonSRXFeedbackDevice of specified value
-
valueOf
Get TalonSRXFeedbackDevice from specified value- Parameters:
value
- Value of TalonSRXFeedbackDevice- Returns:
- TalonSRXFeedbackDevice of specified value
-
toString
- Overrides:
toString
in classEnum<TalonSRXFeedbackDevice>
- Returns:
- string representation of specified TalonSRXFeedbackDevice
-
toFeedbackDevice
Helper method to convert to generic FeedbackDevice enum.- Returns:
- value cast as FeedbackDevice
-