|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DCMotor
Interface for a regular DC motor with no encoder. TODO: Reconcile this with lejos.nxt.BasicMotor. Maybe BasicMotor implements this?
Method Summary | |
---|---|
void |
backward()
Causes motor to rotate backwards until stop is called. |
void |
flt()
Motor loses all power, causing the rotor to float freely to a stop. |
void |
forward()
Causes motor to rotate forward until stop is called. |
boolean |
isMoving()
Return if the motor is moving. |
void |
stop()
Causes motor to stop immediately. |
Method Detail |
---|
void forward()
void backward()
void stop()
void flt()
boolean isMoving()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |