|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnanovm.nibo.drivers.EdgeDetector
public class EdgeDetector
Encapsulates the information about the two IR-reflex-sensors for edge detection. You will have to call the update Method first to get actual values.
Field Summary | |
---|---|
static int |
MAXIMUM
Maximum value from IR-sensor |
static int |
MINIMUM
Minimum value from IR-sensor |
Constructor Summary | |
---|---|
EdgeDetector()
|
Method Summary | |
---|---|
static int |
getLeftAbs()
Get the measured value from the left sensor with IR-enlightment. |
static int |
getLeftRel()
Get the difference between the measurement with and without IR-enlightment from the left sensor. |
static int |
getRightAbs()
Get the measured value from the right sensor with IR-enlightment. |
static int |
getRightRel()
Get the difference between the measurement with and without IR-enlightment from the right sensor. |
static void |
update()
Measure the reflex values on both sides and update the values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM
public static final int MINIMUM
Constructor Detail |
---|
public EdgeDetector()
Method Detail |
---|
public static void update()
public static int getLeftRel()
public static int getRightRel()
public static int getLeftAbs()
public static int getRightAbs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |