de.jaetzold.art.examples
Class NormalizedDriveTrainSimpleAlgorithm

java.lang.Object
  |
  +--de.jaetzold.art.examples.DriveTrainSimpleAlgorithm
        |
        +--de.jaetzold.art.examples.NormalizedDriveTrainSimpleAlgorithm
All Implemented Interfaces:
DriveTrain, NormalizedDriveTrain

public class NormalizedDriveTrainSimpleAlgorithm
extends DriveTrainSimpleAlgorithm
implements NormalizedDriveTrain

This implementation just waits for a specific time. Other implementations could be based on Servo or StepperMotor if the Robot can provide them.


Inner Class Summary
static interface NormalizedDriveTrainSimpleAlgorithm.Robot
           
 
Inner classes inherited from class de.jaetzold.art.examples.DriveTrainSimpleAlgorithm
DriveTrainSimpleAlgorithm.Robot
 
Field Summary
protected  int fullTurnMilliseconds
           
protected  int meterMilliseconds
           
 
Fields inherited from class de.jaetzold.art.examples.DriveTrainSimpleAlgorithm
changes, left, right, state
 
Fields inherited from interface de.jaetzold.art.examples.DriveTrain
BACKWARD, FORWARD, LEFT_SPIN, RIGHT_SPIN, STOP
 
Constructor Summary
NormalizedDriveTrainSimpleAlgorithm()
           
NormalizedDriveTrainSimpleAlgorithm(NormalizedDriveTrainSimpleAlgorithm.Robot robot)
           
 
Method Summary
 void backward(double meters)
           
 void forward(double meters)
           
 void leftSpin(double turns)
           
static void main(String[] argv)
           
 void rightSpin(double turns)
           
 
Methods inherited from class de.jaetzold.art.examples.DriveTrainSimpleAlgorithm
addPropertyChangeListener, backward, forward, getState, leftSpin, removePropertyChangeListener, resume, rightSpin, setState, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.jaetzold.art.examples.DriveTrain
backward, forward, getState, leftSpin, resume, rightSpin, stop
 

Field Detail

meterMilliseconds

protected int meterMilliseconds

fullTurnMilliseconds

protected int fullTurnMilliseconds
Constructor Detail

NormalizedDriveTrainSimpleAlgorithm

public NormalizedDriveTrainSimpleAlgorithm(NormalizedDriveTrainSimpleAlgorithm.Robot robot)

NormalizedDriveTrainSimpleAlgorithm

public NormalizedDriveTrainSimpleAlgorithm()
                                    throws Exception
Method Detail

forward

public void forward(double meters)
Specified by:
forward in interface NormalizedDriveTrain

backward

public void backward(double meters)
Specified by:
backward in interface NormalizedDriveTrain

leftSpin

public void leftSpin(double turns)
Specified by:
leftSpin in interface NormalizedDriveTrain

rightSpin

public void rightSpin(double turns)
Specified by:
rightSpin in interface NormalizedDriveTrain

main

public static void main(String[] argv)
                 throws Exception