com.scottpreston.javarobot.chapter3
Class SpeedDiffDrive
java.lang.Object
   com.scottpreston.javarobot.chapter3.BasicDiffDrive
com.scottpreston.javarobot.chapter3.BasicDiffDrive
       com.scottpreston.javarobot.chapter3.TimedDiffDrive
com.scottpreston.javarobot.chapter3.TimedDiffDrive
           com.scottpreston.javarobot.chapter3.SpeedDiffDrive
com.scottpreston.javarobot.chapter3.SpeedDiffDrive
- All Implemented Interfaces: 
- JMotion
- public class SpeedDiffDrive 
- extends TimedDiffDrive- implements JMotion
 
 
 
 
 
| 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 | 
 
 
SpeedDiffDrive
public SpeedDiffDrive(JSerialPort serialPort)
               throws java.lang.Exception
- Throws:
- java.lang.Exception
getSpeed
public int getSpeed()
- 
- Specified by:
- getSpeedin interface- JMotion
 
- 
 
setSpeed
public void setSpeed(int speed)
              throws java.lang.Exception
- 
- Specified by:
- setSpeedin interface- JMotion
 
- 
- Throws:
- java.lang.Exception
 
main
public static void main(java.lang.String[] args)
- 
 
- 
 
forward
public void forward(int ms)
             throws java.lang.Exception
- 
- Specified by:
- forwardin interface- JMotion
 
- 
- Throws:
- java.lang.Exception
 
reverse
public void reverse(int ms)
             throws java.lang.Exception
- 
- Specified by:
- reversein interface- JMotion
 
- 
- Throws:
- java.lang.Exception
 
pivotRight
public void pivotRight(int ms)
                throws java.lang.Exception
- 
- Specified by:
- pivotRightin interface- JMotion
 
- 
- Throws:
- java.lang.Exception
 
pivotLeft
public void pivotLeft(int ms)
               throws java.lang.Exception
- 
- Specified by:
- pivotLeftin interface- JMotion
 
- 
- Throws:
- java.lang.Exception