com.scottpreston.javarobot.chapter7
Class SonarServos

java.lang.Object
  extended by com.scottpreston.javarobot.chapter7.SonarServos

public class SonarServos
extends java.lang.Object


Field Summary
static int LEFT_AFT
           
static int LEFT_FORE
           
static int LEFT_NEUTRAL
           
static int LEFT_SONAR
           
static int RIGHT_AFT
           
static int RIGHT_FORE
           
static int RIGHT_NEUTRAL
           
static int RIGHT_SONAR
           
 
Constructor Summary
SonarServos(JSerialPort serialPort)
           
 
Method Summary
 void lookAft()
           
 void lookFore()
           
 void lookSide()
           
static void main(java.lang.String[] args)
           
 void move(int left, int right)
           
 void moveLeft(int angle)
           
 void moveRight(int angle)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT_SONAR

public static final int LEFT_SONAR
See Also:
Constant Field Values

RIGHT_SONAR

public static final int RIGHT_SONAR
See Also:
Constant Field Values

LEFT_AFT

public static final int LEFT_AFT
See Also:
Constant Field Values

LEFT_NEUTRAL

public static final int LEFT_NEUTRAL
See Also:
Constant Field Values

RIGHT_NEUTRAL

public static final int RIGHT_NEUTRAL
See Also:
Constant Field Values

LEFT_FORE

public static final int LEFT_FORE
See Also:
Constant Field Values

RIGHT_AFT

public static final int RIGHT_AFT
See Also:
Constant Field Values

RIGHT_FORE

public static final int RIGHT_FORE
See Also:
Constant Field Values
Constructor Detail

SonarServos

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

move

public void move(int left,
                 int right)
          throws java.lang.Exception
Throws:
java.lang.Exception

moveLeft

public void moveLeft(int angle)
              throws java.lang.Exception
Throws:
java.lang.Exception

moveRight

public void moveRight(int angle)
               throws java.lang.Exception
Throws:
java.lang.Exception

lookSide

public void lookSide()
              throws java.lang.Exception
Throws:
java.lang.Exception

lookFore

public void lookFore()
              throws java.lang.Exception
Throws:
java.lang.Exception

lookAft

public void lookAft()
             throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception