public class Motor extends GenericMotor
Constructor and Description |
---|
Motor()
Creates a motor instance that is plugged into port A.
|
Motor(MotorPort port)
Creates a motor instance that is plugged into given port.
|
Modifier and Type | Method and Description |
---|---|
lejos.hardware.motor.EV3LargeRegulatedMotor |
getLejosMotor()
Returns the reference of the the underlying lejos.hardware.motor.EV3LargeRegulatedMotor.
|
backward, continueRelativeTo, continueRelativeTo, continueTo, continueTo, forward, getMotorCount, getPortId, getPortLabel, getSpeed, getVelocity, isMoving, resetMotorCount, rotateTo, rotateTo, setAcceleration, setSpeed, setSpeedFactor, setVelocity, speedToVelocity, stop, stop, velocityToSpeed
public Motor(MotorPort port)
port
- the port where the motor is plugged-in (MotorPort.A, MotorPort.B, MotorPort.C)public Motor()