Package com.ctre.phoenix6.signals
Enum Class ForwardLimitSourceValue
- All Implemented Interfaces:
Serializable
,Comparable<ForwardLimitSourceValue>
,java.lang.constant.Constable
Determines where to poll the forward limit switch. This defaults to the
forward limit switch pin on the limit switch connector.
Choose RemoteTalonFX to use the forward limit switch attached to another Talon FX on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).
Choose RemoteCANifier to use the forward limit switch attached to another CANifier on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).
Choose RemoteCANcoder to use another CANcoder on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). The forward 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 forward limit switch.Use the forward limit switch pin on the limit switch connector.Use another CANcoder on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).Use the forward limit switch attached to another CANifier on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).Use another CANrange on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID).Use the forward limit switch attached to another Talon FX on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ForwardLimitSourceValue
valueOf
(int value) Gets ForwardLimitSourceValue from specified valuestatic ForwardLimitSourceValue
Returns the enum constant of this class with the specified name.static ForwardLimitSourceValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LimitSwitchPin
Use the forward limit switch pin on the limit switch connector. -
RemoteTalonFX
Use the forward limit switch attached to another Talon FX on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). -
RemoteCANifier
Use the forward limit switch attached to another CANifier on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). -
RemoteCANcoder
Use another CANcoder on the same CAN bus (this also requires setting ForwardLimitRemoteSensorID). The forward 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 ForwardLimitRemoteSensorID). The forward limit will assert when the CANrange proximity detect is tripped. -
Disabled
Disable the forward 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 ForwardLimitSourceValue from specified value- Parameters:
value
- Value of ForwardLimitSourceValue- Returns:
- ForwardLimitSourceValue of specified value
-