com.scottpreston.javarobot.chapter3
Class TimedDiffDrive

java.lang.Object
  extended by com.scottpreston.javarobot.chapter3.BasicDiffDrive
      extended by com.scottpreston.javarobot.chapter3.TimedDiffDrive
Direct Known Subclasses:
SpeedDiffDrive

public class TimedDiffDrive
extends BasicDiffDrive


Field Summary
 
Fields inherited from class com.scottpreston.javarobot.chapter3.BasicDiffDrive
LEFT_WHEEL, RIGHT_WHEEL
 
Constructor Summary
TimedDiffDrive(JSerialPort serialPort)
           
 
Method Summary
 void forward(long ms)
           
static void main(java.lang.String[] args)
           
 void pivotLeft(long ms)
           
 void pivotRight(long ms)
           
 void reverse(long ms)
           
 
Methods inherited from class com.scottpreston.javarobot.chapter3.BasicDiffDrive
forward, getLeftHigh, getLeftLow, getRightHigh, getRightLow, isMotorsInverted, pivotLeft, pivotRight, reverse, setLeftHigh, setLeftLow, setMotors, setMotorsInverted, setRightHigh, setRightLow, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedDiffDrive

public TimedDiffDrive(JSerialPort serialPort)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

forward

public void forward(long ms)
             throws java.lang.Exception
Throws:
java.lang.Exception

reverse

public void reverse(long ms)
             throws java.lang.Exception
Throws:
java.lang.Exception

pivotLeft

public void pivotLeft(long ms)
               throws java.lang.Exception
Throws:
java.lang.Exception

pivotRight

public void pivotRight(long ms)
                throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)