Package com.ctre.phoenix.motorcontrol
Enum Class RemoteFeedbackDevice
- All Implemented Interfaces:
Serializable
,Comparable<RemoteFeedbackDevice>
,Constable
Choose the remote feedback device for a motor controller
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Use "None" instead.Position and velocity will read 0.Use the sensor configured in remote filter0Use the sensor configured in remote filter1Use Diff0 - Diff1Use Sum0 + Sum1Motor Controller will fake a sensor based on applied motor output. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static RemoteFeedbackDevice
valueOf
(double value) Get RemoteFeedbackDevice from specified valuestatic RemoteFeedbackDevice
valueOf
(int value) Get RemoteFeedbackDevice from specified valuestatic RemoteFeedbackDevice
Returns the enum constant of this class with the specified name.static RemoteFeedbackDevice[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FactoryDefaultOff
Deprecated.Use "None" instead.Factory default setting for non-enhanced motor controllers -
SensorSum
Use Sum0 + Sum1 -
SensorDifference
Use Diff0 - Diff1 -
RemoteSensor0
Use the sensor configured in remote filter0 -
RemoteSensor1
Use the sensor configured in remote filter1 -
None
Position and velocity will read 0. -
SoftwareEmulatedSensor
Motor Controller will fake a sensor based on applied motor output.
-
-
Field Details
-
value
Value of RemoteFeedbackDevice
-
-
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 RemoteFeedbackDevice from specified value- Parameters:
value
- Value of RemoteFeedbackDevice- Returns:
- RemoteFeedbackDevice of specified value
-
valueOf
Get RemoteFeedbackDevice from specified value- Parameters:
value
- Value of RemoteFeedbackDevice- Returns:
- RemoteFeedbackDevice of specified value
-
getFeedbackDevice
- Returns:
- FeedbackDevice of RemoteFeedbackDevice
-
toString
- Overrides:
toString
in classEnum<RemoteFeedbackDevice>
- Returns:
- String representation of selected feedback device
-