Package com.ctre.phoenix.motorcontrol
Enum 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
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ArbitraryFeedForward
When closed-looping, add demand arbitrarily to the closed-loop output.AuxPID
When closed-looping, set the target of the aux PID loop to the demand value.Neutral
Ignore the demand value and apply neutral/no-change. -
Field Summary
Fields Modifier and Type Field Description int
value
Value of DemandType -
Method Summary
Modifier and Type Method Description static DemandType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DemandType[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-