|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticommand.platform.nxt.SyncMotors
public class SyncMotors
Field Summary | |
---|---|
Motor |
left
|
Motor |
right
|
Constructor Summary | |
---|---|
SyncMotors(Motor left,
Motor right)
The Lego firmware only accepts 3 valid combinations for Motors: A,B A,C B,C PRELIMINARY: Expect poor performance for some commands until things are improved. |
Method Summary | |
---|---|
void |
backward()
|
void |
backward(long rotations)
PRELIMINARY: Somewhat overshoots at the moment. |
void |
flt()
|
void |
forward()
|
void |
forward(long rotations)
PRELIMINARY: Somewhat overshoots at the moment. |
void |
invertMotors()
|
void |
left()
|
void |
left(long rotations)
PRELIMINARY: Somewhat inaccurate at the moment. |
void |
left(long rotations,
boolean returnNow)
PRELIMINARY: Very inaccurate at the moment. |
void |
right()
|
void |
right(long rotations)
PRELIMINARY: Somewhat inaccurate at the moment. |
void |
right(long rotations,
boolean returnNow)
PRELIMINARY: Very inaccurate at the moment. |
void |
setSpeed(int speed)
Note: This does not alter the speed realtime. |
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Motor left
public Motor right
Constructor Detail |
---|
public SyncMotors(Motor left, Motor right)
left
- right
- Method Detail |
---|
public void setSpeed(int speed)
speed
- public void invertMotors()
public void forward()
public void backward()
public void left()
public void right()
public void left(long rotations)
rotations
- public void left(long rotations, boolean returnNow)
rotations
- returnNow
- Returns immediately if true.public void right(long rotations)
rotations
- public void right(long rotations, boolean returnNow)
rotations
- returnNow
- Returns immediately if true.public void forward(long rotations)
rotations
- public void backward(long rotations)
rotations
- public void stop()
public void flt()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |