koala
Interface KoalaMotors
- All Known Implementing Classes:
- Koala, KoalaMotorController
public interface KoalaMotors
Interface comprising the Koala method calls that relate to motors.
This is an arbitrary division since the motors
and sensors are ultimately always implemented by a single Koala object.
For the same reason, refer to Koala for documentation.
setSpeed
int setSpeed(int left,
int right)
rotate
int rotate(double angle)
moveForward
int moveForward(double distance)
getLeftMotorSpeed
int getLeftMotorSpeed()
getRightMotorSpeed
int getRightMotorSpeed()
getLeftMotorPosition
int getLeftMotorPosition()
getRightMotorPosition
int getRightMotorPosition()
setMotorPosition
int setMotorPosition(int left,
int right)
getLeftMotorCurrent
int getLeftMotorCurrent()
getRightMotorCurrent
int getRightMotorCurrent()
leftMotorError
boolean leftMotorError()
rightMotorError
boolean rightMotorError()