Package com.ctre.phoenix6.signals
Enum Class ReverseLimitSourceValue
- All Implemented Interfaces:
Serializable
,Comparable<ReverseLimitSourceValue>
,java.lang.constant.Constable
Determines where to poll the reverse limit switch. This defaults to the
reverse limit switch pin on the limit switch connector.
Choose RemoteTalonFX to use the reverse limit switch attached to another Talon FX on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).
Choose RemoteCANifier to use the reverse limit switch attached to another CANifier on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).
Choose RemoteCANcoder to use another CANcoder on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). The reverse limit will assert when the CANcoder magnet strength changes from BAD (red) to ADEQUATE (orange) or GOOD (green).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisable the reverse limit switch.Use the reverse limit switch pin on the limit switch connector.Use another CANcoder on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).Use another CANdi on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).Use another CANdi on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).Use the reverse limit switch attached to another CANifier on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).Use another CANrange on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID).Use the reverse limit switch attached to another Talon FX on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReverseLimitSourceValue
valueOf
(int value) Gets ReverseLimitSourceValue from specified valuestatic ReverseLimitSourceValue
Returns the enum constant of this class with the specified name.static ReverseLimitSourceValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LimitSwitchPin
Use the reverse limit switch pin on the limit switch connector. -
RemoteTalonFX
Use the reverse limit switch attached to another Talon FX on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). -
RemoteCANifier
Use the reverse limit switch attached to another CANifier on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). -
RemoteCANcoder
Use another CANcoder on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). The reverse limit will assert when the CANcoder magnet strength changes from BAD (red) to ADEQUATE (orange) or GOOD (green). -
RemoteCANrange
Use another CANrange on the same CAN bus (this also requires setting ReverseLimitRemoteSensorID). The reverse limit will assert when the CANrange proximity detect is tripped. -
RemoteCANdiS1
Use another CANdi on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). The forward limit will assert when the CANdi Signal 1 Input (S1IN) pin matches the configured closed state. -
RemoteCANdiS2
Use another CANdi on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). The forward limit will assert when the CANdi Signal 2 Input (S2IN) pin matches the configured closed state. -
Disabled
Disable the reverse limit switch.
-
-
Field Details
-
value
-
-
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
Gets ReverseLimitSourceValue from specified value- Parameters:
value
- Value of ReverseLimitSourceValue- Returns:
- ReverseLimitSourceValue of specified value
-