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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
meterMilliseconds
protected int meterMilliseconds
fullTurnMilliseconds
protected int fullTurnMilliseconds
NormalizedDriveTrainSimpleAlgorithm
public NormalizedDriveTrainSimpleAlgorithm(NormalizedDriveTrainSimpleAlgorithm.Robot robot)
NormalizedDriveTrainSimpleAlgorithm
public NormalizedDriveTrainSimpleAlgorithm()
throws Exception
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