Enum DemandType

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

public enum DemandType
extends Enum<DemandType>
Choose the demand type for the 4 param set
  • Enum Constant Details

    • Neutral

      public static final DemandType Neutral
      Ignore the demand value and apply neutral/no-change.
    • AuxPID

      public static final DemandType AuxPID
      When closed-looping, set the target of the aux PID loop to the demand value. When following, follow the processed output of the combined primary/aux PID output of the master. The demand value is ignored. Although it is much cleaner to use the 2-param Follow() in such cases.
    • ArbitraryFeedForward

      public static final DemandType ArbitraryFeedForward
      When closed-looping, add demand arbitrarily to the closed-loop output.
  • Field Details

  • Method Details

    • values

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