|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicMotorPort
An abstraction for a motor port that supports RCX type motors, but not NXT motors with tachometers.
Field Summary | |
---|---|
static int |
BACKWARD
Motor is running backwards |
static int |
FLOAT
Motor is floating (no PWM drive) |
static int |
FORWARD
Motor is running forward |
static int |
MAX_POWER
Maximum power setting = 100% |
static int |
PWM_BRAKE
PWM Mode. |
static int |
PWM_FLOAT
PWM Mode. |
static int |
STOP
Motor is stopped (PWM drive still applied) |
Method Summary | |
---|---|
void |
controlMotor(int power,
int mode)
|
void |
setPWMMode(int mode)
|
Field Detail |
---|
static final int PWM_FLOAT
static final int PWM_BRAKE
static final int FORWARD
static final int BACKWARD
static final int STOP
static final int FLOAT
static final int MAX_POWER
Method Detail |
---|
void controlMotor(int power, int mode)
void setPWMMode(int mode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |