Package com.ctre.phoenix.motorcontrol
Enum TalonFXFeedbackDevice
- All Implemented Interfaces:
Serializable
,Comparable<TalonFXFeedbackDevice>
,java.lang.constant.Constable
public enum TalonFXFeedbackDevice extends Enum<TalonFXFeedbackDevice>
Choose the feedback device for a selected sensor
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description IntegratedSensor
TalonFX supports an integrated sensor.None
Position and velocity will read 0.RemoteSensor0
Sensor configured in RemoteFilter0RemoteSensor1
Sensor configured in RemoteFilter1SensorDifference
Diff0 - Diff1SensorSum
Sum0 + Sum1SoftwareEmulatedSensor
Motor Controller will fake a sensor based on applied motor output. -
Field Summary
Fields Modifier and Type Field Description int
value
Value of Feedback Device -
Method Summary
Modifier and Type Method Description FeedbackDevice
toFeedbackDevice()
Helper method to convert to generic FeedbackDevice enum.String
toString()
static TalonFXFeedbackDevice
valueOf(double value)
Get TalonFXFeedbackDevice from specified valuestatic TalonFXFeedbackDevice
valueOf(int value)
Get TalonFXFeedbackDevice from specified valuestatic TalonFXFeedbackDevice
valueOf(String name)
Returns the enum constant of this type with the specified name.static TalonFXFeedbackDevice[]
values()
Returns an array containing the constants of this enum type, 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 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 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
-