Enum Class MotorArrangementValue

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

Selects the motor and motor connections used with Talon.

This setting determines what kind of motor and sensors are used with the Talon. This also determines what signals are used on the JST and Gadgeteer port.

Motor drive will not function correctly if this setting does not match the physical setup.

  • Enum Constant Details

    • Disabled

      public static final MotorArrangementValue Disabled
      Motor is not selected. This is the default setting to ensure the user has an opportunity to select the correct motor arrangement before attempting to drive motor.
    • Minion_JST

      public static final MotorArrangementValue Minion_JST
      CTR Electronics MinionĀ® brushless three phase motor. Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. 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].
    • Brushed_DC

      public static final MotorArrangementValue Brushed_DC
      Third party brushed DC motor with two leads. Use the Brushed Motor Wiring config to determine which leads to use on the Talon (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].
    • NEO_JST

      public static final MotorArrangementValue NEO_JST
      Third party NEO brushless three phase motor (~6000 RPM at 12V). Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. 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].
    • NEO550_JST

      public static final MotorArrangementValue NEO550_JST
      Third party NEO550 brushless three phase motor (~11000 RPM at 12V). Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. 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].
    • VORTEX_JST

      public static final MotorArrangementValue VORTEX_JST
      Third party VORTEX brushless three phase motor. Motor leads: red(terminal A), black (terminal B), and white (terminal C). JST Connector: hall [A, B, C] is on pins [4, 3, 2] and temperature is on pin [5]. Motor JST cable can be plugged directly into the JST connector. 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 MotorArrangementValue[] 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 MotorArrangementValue 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 MotorArrangementValue valueOf(int value)
      Gets MotorArrangementValue from specified value
      Parameters:
      value - Value of MotorArrangementValue
      Returns:
      MotorArrangementValue of specified value