Enum Class BrushedMotorWiringValue

java.lang.Object
java.lang.Enum<BrushedMotorWiringValue>
com.ctre.phoenix6.signals.BrushedMotorWiringValue
All Implemented Interfaces:
Serializable, Comparable<BrushedMotorWiringValue>, java.lang.constant.Constable

If a brushed motor is selected with Motor Arrangement, this config determines which of three leads to use.
  • Enum Constant Details

    • Leads_A_and_B

      Third party brushed DC motor with two leads. Motor leads: Use terminal A for the motor red lead and terminal B for the motor black lead (motor leads may be flipped to correct for clockwise vs counterclockwise). Note that the invert configuration can still be used to invert rotor orientation. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9].
    • Leads_A_and_C

      Third party brushed DC motor with two leads. Motor leads: Use terminal A for the motor red lead and terminal C for the motor black lead (motor leads may be flipped to correct for clockwise vs counterclockwise). Note that the invert configuration can still be used to reverse rotor orientation. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9].
    • Leads_B_and_C

      Third party brushed DC motor with two leads. Motor leads: Use terminal B for the motor red lead and terminal C for the motor black lead (motor leads may be flipped to correct for clockwise vs counterclockwise). Note that the invert configuration can still be used to reverse rotor orientation. Gadgeteer Connector: quadrature [A, B] are on pins [7, 5], limit [forward, reverse] are on pins [4, 8], and pulse width position is on pin [9].
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static BrushedMotorWiringValue[] 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 BrushedMotorWiringValue 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 BrushedMotorWiringValue valueOf(int value)
      Gets BrushedMotorWiringValue from specified value
      Parameters:
      value - Value of BrushedMotorWiringValue
      Returns:
      BrushedMotorWiringValue of specified value