|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejos.nxt.remote.RemoteMotorPort
public class RemoteMotorPort
Supports a motor connected to a remote NXT
Field Summary |
---|
Fields inherited from interface lejos.nxt.BasicMotorPort |
---|
PWM_BRAKE, PWM_FLOAT |
Constructor Summary | |
---|---|
RemoteMotorPort(NXTCommand nxtCommand,
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 |
Constructor Detail |
---|
public RemoteMotorPort(NXTCommand nxtCommand, int id)
Method Detail |
---|
public void controlMotor(int power, int mode)
controlMotor
in interface BasicMotorPort
public int getTachoCount()
Encoder
getTachoCount
in interface Encoder
public void resetTachoCount()
Encoder
resetTachoCount
in interface Encoder
public void setPWMMode(int mode)
setPWMMode
in interface BasicMotorPort
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |