|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.MotorPort
public class MotorPort
This version of the MotorPort class supports a motor connected to a remote NXT
| Field Summary | |
|---|---|
static MotorPort |
A
|
static MotorPort |
B
|
static MotorPort |
C
|
| Fields inherited from interface lejos.nxt.BasicMotorPort |
|---|
PWM_BRAKE, PWM_FLOAT |
| Constructor Summary | |
|---|---|
MotorPort(int id)
|
|
| Method Summary | |
|---|---|
void |
controlMotor(int power,
int mode)
|
int |
getTachoCount()
Returns the tachometer count. |
void |
resetTachoCount()
Reset the tachometer count. |
void |
setPWMMode(int mode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static MotorPort A
public static MotorPort B
public static MotorPort C
| Constructor Detail |
|---|
public MotorPort(int id)
| Method Detail |
|---|
public void controlMotor(int power,
int mode)
controlMotor in interface BasicMotorPortpublic int getTachoCount()
Encoder
getTachoCount in interface Encoderpublic void resetTachoCount()
Encoder
resetTachoCount in interface Encoderpublic void setPWMMode(int mode)
setPWMMode in interface BasicMotorPort
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||