Package com.ctre.phoenix.motorcontrol
Enum Class LimitSwitchNormal
- All Implemented Interfaces:
Serializable
,Comparable<LimitSwitchNormal>
,Constable
Choose whether the limit switch is normally
open or normally closed
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLimit switch is disabledLimit Switch is tripped when the circuit is openLimit Switch is tripped when the circuit is closed -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static LimitSwitchNormal
valueOf
(double value) Get LimitSwitchNormal of specified valuestatic LimitSwitchNormal
valueOf
(int value) Get LimitSwitchNormal of specified valuestatic LimitSwitchNormal
Returns the enum constant of this class with the specified name.static LimitSwitchNormal[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NormallyOpen
Limit Switch is tripped when the circuit is closed -
NormallyClosed
Limit Switch is tripped when the circuit is open -
Disabled
Limit switch is disabled
-
-
Field Details
-
value
Value of LimitSwitch Setting
-
-
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 LimitSwitchNormal of specified value- Parameters:
value
- Value of LimitSwitchNormal- Returns:
- LimitSwitchNormal of specified value
-
valueOf
Get LimitSwitchNormal of specified value- Parameters:
value
- Value of LimitSwitchNormal- Returns:
- LimitSwitchNormal of specified value
-
toString
- Overrides:
toString
in classEnum<LimitSwitchNormal>
- Returns:
- String representation of LimitSwitchNormal setting
-