lejos.nxt
Interface BasicMotorPort

All Known Subinterfaces:
TachoMotorPort
All Known Implementing Classes:
MotorPort, RCXPlexedMotorPort, RCXRemoteMotorPort, RemoteMotorPort

public interface BasicMotorPort

An abstraction for a motor port that supports RCX type motors, but not NXT motors with tachometers.

Author:
Lawrie Griffiths.

WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.

Field Summary
static int PWM_BRAKE
           
static int PWM_FLOAT
           
 
Method Summary
 void controlMotor(int power, int mode)
           
 void setPWMMode(int mode)
           
 

Field Detail

PWM_FLOAT

static final int PWM_FLOAT
See Also:
Constant Field Values

PWM_BRAKE

static final int PWM_BRAKE
See Also:
Constant Field Values
Method Detail

controlMotor

void controlMotor(int power,
                  int mode)

setPWMMode

void setPWMMode(int mode)