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.


Method Summary
 int getLeftMotorCurrent()
           
 int getLeftMotorPosition()
           
 int getLeftMotorSpeed()
           
 int getRightMotorCurrent()
           
 int getRightMotorPosition()
           
 int getRightMotorSpeed()
           
 boolean leftMotorError()
           
 int moveForward(double distance)
           
 boolean rightMotorError()
           
 int rotate(double angle)
           
 int setMotorPosition(int left, int right)
           
 int setSpeed(int left, int right)
           
 

Method Detail

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()