|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Motor2
Exteneded generic interface to a variable power motor which provides finer grained power control than the Motor interface.
Field Summary | |
---|---|
static int |
MAX_FORWARD2
Maximum power setting in the forward direction when using the setPower2 method. |
static int |
MAX_REVERSE2
Maximum power setting in the reverse direction when using the setPower2 method. |
Fields inherited from interface com.ridgesoft.robotics.Motor |
---|
MAX_FORWARD, MAX_REVERSE, STOP |
Method Summary | |
---|---|
void |
setPower2(int power2)
Sets the motor's power. |
Methods inherited from interface com.ridgesoft.robotics.Motor |
---|
brake, setPower, stop |
Field Detail |
---|
static final int MAX_FORWARD2
static final int MAX_REVERSE2
Method Detail |
---|
void setPower2(int power2)
This method provides finer grained power control than the setPower method of the Motor interface.
Note: Do not use MAX_FORWARD or MAX_REVERSE with this method. Instead, use MAX_FORWARD2 or MAX_REVERSE2.
power2
- the power level to set
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |