Package com.playingwithfusion
Enum Class TimeOfFlight.Status
- All Implemented Interfaces:
Serializable
,Comparable<TimeOfFlight.Status>
,Constable
- Enclosing class:
- TimeOfFlight
Distance measurement status
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHardware failureInternal algorithm underflow or overflowThe measured distance is invalidReturn signal phase is out of bounds.Return signal value is below the internal defined threshold.Sigma estimator check is above internally defined threshold.Measured distance is validWrapped target, non-matching phases. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeOfFlight.Status
Returns the enum constant of this class with the specified name.static TimeOfFlight.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Valid
Measured distance is valid -
SigmaHigh
Sigma estimator check is above internally defined threshold. The repeatability or standard deviation of the measurement is bad due to a decreasing signal noise ratio. Increasing the timing budget can improve the standard deviation. -
ReturnSignalLow
Return signal value is below the internal defined threshold. The return signal is too week to return a good answer. The target may be too far, not reflective enough, or too small. Increasing the timing buget might help, but there may simply be no target available. -
ReturnPhaseBad
Return signal phase is out of bounds. This means that the sensor is ranging in a "nonappropriated" zone and the measured result may be inconsistent. This status is considered as a warning but, in general, it happens when a target is at the maximum distance possible from the sensor. -
HardwareFailure
Hardware failure -
WrappedTarget
Wrapped target, non-matching phases. This situation may occur when the target is very reflective and the distance to the target/sensor is longer than the physical limited distance measurable by the sensor. For example, approximately 5m when the senor is in Long distance mode and approximately 1.3 m when the sensor is in Short distance mode. -
InternalError
Internal algorithm underflow or overflow -
Invalid
The measured distance is invalid
-
-
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
-