public class NxtGear extends GenericGear
Constructor and Description |
---|
NxtGear()
Creates a gear instance with left motor plugged into port A, right motor plugged into port B.
|
NxtGear(MotorPort port1,
MotorPort port2)
Creates a gear instance with right motor plugged into port1, left motor plugged into port2.
|
Modifier and Type | Method and Description |
---|---|
NxtMotor |
getMotLeft()
Returns left motor of the gear.
|
NxtMotor |
getMotRight()
Returns right motor of the gear.
|
backward, backward, forward, forward, getLeftMotorCount, getRightMotorCount, getSpeed, getVelocity, isMoving, left, left, leftArc, leftArc, leftArcMilli, leftArcMilli, moveTo, moveTo, resetLeftMotorCount, resetRightMotorCount, right, right, rightArc, rightArc, rightArcMilli, rightArcMilli, setAcceleration, setAxeLengthMilli, setBrakeDelay, setSpeed, setVelocity, stop, turnTo, turnTo
public NxtGear(MotorPort port1, MotorPort port2)
port1
- MotorPort.A, MotorPort.B, MotorPort.C, MotorPort.D (not both the same)port2
- MotorPort.A. MotorPort.B, MotorPort.C, MotorPort.D (not both the same)public NxtGear()