Package com.ctre.phoenix.motorcontrol
Enum Class TalonFXFeedbackDevice
- All Implemented Interfaces:
Serializable
,Comparable<TalonFXFeedbackDevice>
,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 ConstantDescriptionTalonFX supports an integrated sensor.Position and velocity will read 0.Sensor configured in RemoteFilter0Sensor configured in RemoteFilter1Diff0 - Diff1Sum0 + Sum1Motor Controller will fake a sensor based on applied motor output. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionHelper method to convert to generic FeedbackDevice enum.toString()
static TalonFXFeedbackDevice
valueOf
(double value) Get TalonFXFeedbackDevice from specified valuestatic TalonFXFeedbackDevice
valueOf
(int value) Get TalonFXFeedbackDevice from specified valuestatic TalonFXFeedbackDevice
Returns the enum constant of this class with the specified name.static TalonFXFeedbackDevice[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IntegratedSensor
TalonFX supports an integrated sensor. -
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.
-
-
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 TalonFXFeedbackDevice from specified value- Parameters:
value
- Value of TalonFXFeedbackDevice- Returns:
- TalonFXFeedbackDevice of specified value
-
valueOf
Get TalonFXFeedbackDevice from specified value- Parameters:
value
- Value of TalonFXFeedbackDevice- Returns:
- TalonFXFeedbackDevice of specified value
-
toString
- Overrides:
toString
in classEnum<TalonFXFeedbackDevice>
- Returns:
- string representation of specified TalonFXFeedbackDevice
-
toFeedbackDevice
Helper method to convert to generic FeedbackDevice enum.- Returns:
- value cast as FeedbackDevice
-