|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnanovm.nibo.drivers.LineDetector
public class LineDetector
Encapsulates the information about the two IR-reflex-sensors for line 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 | |
---|---|
LineDetector()
|
Method Summary | |
---|---|
static int |
getLeftAbs()
Get the measured value from the left line sensor with IR-enlightment. |
static int |
getLeftRel()
Get the difference between the measurement with and without IR-enlightment from the left line sensor. |
static int |
getRightAbs()
Get the measured value from the right line sensor with IR-enlightment. |
static int |
getRightRel()
Get the difference between the measurement with and without IR-enlightment from the right line 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 LineDetector()
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 |