Enum NeutralMode

java.lang.Object
java.lang.Enum<NeutralMode>
com.ctre.phoenix.motorcontrol.NeutralMode
All Implemented Interfaces:
Serializable, Comparable<NeutralMode>, java.lang.constant.Constable

public enum NeutralMode
extends Enum<NeutralMode>
Choose the neutral mode for a motor controller
  • Enum Constant Details

    • EEPROMSetting

      public static final NeutralMode EEPROMSetting
      Use the NeutralMode that is set in the MC's persistent storage.
    • Coast

      public static final NeutralMode Coast
      When commanded to neutral, motor leads are set to high-impedance, allowing mechanism to coast.
    • Brake

      public static final NeutralMode Brake
      When commanded to neutral, motor leads are commonized electrically to reduce motion.
  • Field Details

  • Method Details

    • values

      public static NeutralMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NeutralMode valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null