Package com.kauailabs.navx.ftc
Enum navXPIDController.ToleranceType
- java.lang.Object
-
- java.lang.Enum<navXPIDController.ToleranceType>
-
- com.kauailabs.navx.ftc.navXPIDController.ToleranceType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<navXPIDController.ToleranceType>
- Enclosing class:
- navXPIDController
public static enum navXPIDController.ToleranceType extends java.lang.Enum<navXPIDController.ToleranceType>
The ToleranceType enumeration defines the type of tolerance to be used by the navXPIDController to determine whether the controller is "on_target".
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static navXPIDController.ToleranceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static navXPIDController.ToleranceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final navXPIDController.ToleranceType NONE
-
PERCENT
public static final navXPIDController.ToleranceType PERCENT
-
ABSOLUTE
public static final navXPIDController.ToleranceType ABSOLUTE
-
-
Method Detail
-
values
public static navXPIDController.ToleranceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (navXPIDController.ToleranceType c : navXPIDController.ToleranceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static navXPIDController.ToleranceType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-