Package com.ctre.phoenix.motorcontrol
Enum Class DemandType
- All Implemented Interfaces:
Serializable
,Comparable<DemandType>
,Constable
Choose the demand type for the 4 param set
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen closed-looping, add demand arbitrarily to the closed-loop output.When closed-looping, set the target of the aux PID loop to the demand value.Ignore the demand value and apply neutral/no-change. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DemandType
Returns the enum constant of this class with the specified name.static DemandType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Neutral
Ignore the demand value and apply neutral/no-change. -
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
When closed-looping, add demand arbitrarily to the closed-loop output.
-
-
Field Details
-
value
Value of DemandType
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-