com.scottpreston.javarobot.chapter7
Class SonarServos
java.lang.Object
com.scottpreston.javarobot.chapter7.SonarServos
public class SonarServos
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SonarServos
public SonarServos(JSerialPort serialPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
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