Enum Class Limelight.Status
- All Implemented Interfaces:
Serializable, Comparable<Limelight.Status>, Constable
- Enclosing class:
Limelight
Health of a camera.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe newest frame did not decode.The camera has not sent a results envelope.A decodable frame has been received recently.The newest frame is older than the stale threshold. -
Method Summary
Modifier and TypeMethodDescriptionstatic Limelight.StatusReturns the enum constant of this class with the specified name.static Limelight.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
A decodable frame has been received recently. -
NO_DATA
The camera has not sent a results envelope. Possible causes: the camera is off, the name is wrong, or MsgPack output is disabled -
STALE
The newest frame is older than the stale threshold. The camera is disconnected or has stopped. The default threshold isLimelight.STALE_FRAME_SECONDS. SeeLimelight.withStaleFrameThreshold(double) -
DECODE_ERROR
The newest frame did not decode. SeeLimelight.LimelightResults.error
-
-
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
-