com.scottpreston.javarobot.chapter3
Class TimedDiffDrive
java.lang.Object
com.scottpreston.javarobot.chapter3.BasicDiffDrive
com.scottpreston.javarobot.chapter3.TimedDiffDrive
- Direct Known Subclasses:
- SpeedDiffDrive
public class TimedDiffDrive
- extends BasicDiffDrive
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 |
TimedDiffDrive
public TimedDiffDrive(JSerialPort serialPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)