|
|||||||||
| 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.
| Method Summary | |
|---|---|
int |
getPower()
Returns the current motor power setting. |
void |
setPower(int power)
Set the power level 0%-100% to be applied to the motor |
| Methods inherited from interface lejos.robotics.BaseMotor |
|---|
backward, flt, forward, isMoving, stop |
| Method Detail |
|---|
void setPower(int power)
power - new motor power 0-100int getPower()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||