public interface BasicMotorPort extends IOPort
Modifier and Type | Field and Description |
---|---|
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)
|
Modifier and Type | Method and Description |
---|---|
void |
controlMotor(int power,
int mode) |
void |
setPWMMode(int mode) |
close, getName, setPinMode
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