Enum Class GoBildaPinpoint.FailureReason
java.lang.Object
java.lang.Enum<GoBildaPinpoint.FailureReason>
org.wpilib.drivers.odometry.GoBildaPinpoint.FailureReason
- All Implemented Interfaces:
Serializable, Comparable<GoBildaPinpoint.FailureReason>, Constable
- Enclosing class:
GoBildaPinpoint
Reason the driver rejected data or an I2C transaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA position or orientation changed by more than the local validation limit.Data returned by the device did not have the expected CRC-8 value.The I2C controller aborted a read transaction.The I2C controller aborted a write transaction.A bulk read returned a nonpositive device loop time.A quaternion sample had a zero or near-zero norm.A floating-point register returned a nonfinite value.A velocity magnitude exceeded the local validation limit. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static GoBildaPinpoint.FailureReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
I2C_READ_ABORTED
The I2C controller aborted a read transaction. -
I2C_WRITE_ABORTED
The I2C controller aborted a write transaction. -
CRC_MISMATCH
Data returned by the device did not have the expected CRC-8 value. -
INVALID_LOOP_TIME
A bulk read returned a nonpositive device loop time. -
NONFINITE_VALUE
A floating-point register returned a nonfinite value. -
INVALID_QUATERNION
A quaternion sample had a zero or near-zero norm. -
CHANGE_TOO_LARGE
A position or orientation changed by more than the local validation limit. -
VELOCITY_TOO_LARGE
A velocity magnitude exceeded the local validation limit.
-
-
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
-