|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnanovm.nibo.drivers.WheelEncoder
public class WheelEncoder
Encapsulates the information about the wheels rotation. You will have to call the update Method first to get actual values. All wheel encoder information is given in ticks, a tick is 1/20 of a whole rotation.
Field Summary | |
---|---|
static int |
MAXIMUM
maximum value for tick increment |
static int |
MAXIMUM_SPEED
minimum value for speed |
static int |
MINIMUM
minimum value for tick increment |
static int |
MINIMUM_SPEED
maximum value for speed |
Constructor Summary | |
---|---|
WheelEncoder()
|
Method Summary | |
---|---|
static boolean |
getEnabled()
get status of wheel-encoder |
static int |
getLeftInc()
get tick-count from left wheel since last call |
static int |
getLeftSpeed()
get actual speed (ticks/second) from left wheel |
static int |
getRightInc()
get tick-count from right wheel since last call |
static int |
getRightSpeed()
get actual speed (ticks/second) from right wheel |
static void |
setEnabled(boolean enable)
enable and disable the wheel-encoder |
static void |
update()
update wheelencoder data |
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
public static final int MAXIMUM_SPEED
public static final int MINIMUM_SPEED
Constructor Detail |
---|
public WheelEncoder()
Method Detail |
---|
public static void update()
public static int getLeftInc()
public static int getRightInc()
public static int getLeftSpeed()
public static int getRightSpeed()
public static void setEnabled(boolean enable)
enable
- true for enablepublic static boolean getEnabled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |