Enum Class CanandcolorProximityConfig.LEDCurrent
java.lang.Object
java.lang.Enum<CanandcolorProximityConfig.LEDCurrent>
com.reduxrobotics.sensors.canandcolor.CanandcolorProximityConfig.LEDCurrent
- All Implemented Interfaces:
Serializable
,Comparable<CanandcolorProximityConfig.LEDCurrent>
,Constable
- Enclosing class:
- CanandcolorProximityConfig
public static enum CanandcolorProximityConfig.LEDCurrent
extends Enum<CanandcolorProximityConfig.LEDCurrent>
Determines how much current gets dumped into the IR LED and thus its intensity.
Higher intensities can detect longer ranges but come at the tradeoff of close range saturation.
Recommended default is max intensity at 20 mA.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromIndex
(int v) Fetches the enum associated with the index value.int
getIndex()
Fetches the index associated with the enum.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
k6mA
6 milliamp LED current. -
k8mA
8 milliamp LED current. -
k10mA
10 milliamp LED current. -
k12mA
12 milliamp LED current. -
k14mA
14 milliamp LED current. -
k16mA
16 milliamp LED current. -
k18mA
18 milliamp LED current. -
k20mA
20 milliamp LED current.
-
-
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
-
getIndex
public int getIndex()Fetches the index associated with the enum.- Returns:
- index value
-
fromIndex
Fetches the enum associated with the index value.- Parameters:
v
- int containing index value; only lower 3 bits are used- Returns:
- corresponding enum
-