Modifier and Type | Method and Description |
---|---|
void |
backward()
Runs the motor backward
|
void |
flt()
Floats the motor
|
void |
forward()
Runs the motor forward
|
int |
getPower()
Returns the current motor power setting.
|
int |
getSpeed()
returns the speed
|
boolean |
isBackward()
Determines if motor is moving backwards this is based on what the receiver has in its registers
|
boolean |
isFlt()
Determines if motor is floating this is based on what the receiver has in its registers
|
boolean |
isForward()
Determines if motor is moving forward this is based on what the receiver has in its registers
|
boolean |
isMoving()
Return
true if the motor is moving. |
boolean |
isStop()
Determines if motor is stopped this is based on what the receiver has in its registers
|
void |
setPower(int power)
Set the power level 0%-100% to be applied to the motor
|
void |
setSpeed(int speed)
Sets the motors speed
|
void |
stop()
Stops the Motor
|
public void backward()
public void setSpeed(int speed)
speed
- 1 = 7public int getSpeed()
public boolean isFlt()
public boolean isForward()
public boolean isBackward()
public boolean isStop()
public boolean isMoving()
BaseMotor
true
if the motor is moving.public void setPower(int power)
DCMotor