Package com.ctre.phoenix.motorcontrol
Enum LimitSwitchNormal
- All Implemented Interfaces:
Serializable
,Comparable<LimitSwitchNormal>
,java.lang.constant.Constable
public enum LimitSwitchNormal extends Enum<LimitSwitchNormal>
Choose whether the limit switch is normally
open or normally closed
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Disabled
Limit switch is disabledNormallyClosed
Limit Switch is tripped when the circuit is openNormallyOpen
Limit Switch is tripped when the circuit is closed -
Field Summary
Fields Modifier and Type Field Description int
value
Value of LimitSwitch Setting -
Method Summary
Modifier and Type Method Description String
toString()
static LimitSwitchNormal
valueOf(double value)
Get LimitSwitchNormal of specified valuestatic LimitSwitchNormal
valueOf(int value)
Get LimitSwitchNormal of specified valuestatic LimitSwitchNormal
valueOf(String name)
Returns the enum constant of this type with the specified name.static LimitSwitchNormal[]
values()
Returns an array containing the constants of this enum type, 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 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 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
-