Enum Class ForwardLimitSourceValue

java.lang.Object
java.lang.Enum<ForwardLimitSourceValue>
com.ctre.phoenix6.signals.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).

  • 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

      public static final ForwardLimitSourceValue Disabled
      Disable the forward limit switch.
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static ForwardLimitSourceValue[] 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

      public static ForwardLimitSourceValue valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valueOf

      public static ForwardLimitSourceValue valueOf(int value)
      Gets ForwardLimitSourceValue from specified value
      Parameters:
      value - Value of ForwardLimitSourceValue
      Returns:
      ForwardLimitSourceValue of specified value