/***
* This command turns the robot in a specified direction for a specified
- * duration.
+ * duration in seconds.
*
* pre-condition: robot is on a flat surface
*
protected void initialize() {
timer = new Timer();
timer.start();
- }
- @Override
- protected void execute() {
if (direction == Direction.RIGHT) {
Robot.driveTrain.setMotorSpeeds(SPEED, -SPEED);
} else if (direction == Direction.LEFT) {
}
}
+ @Override
+ protected void execute() {
+
+ }
+
@Override
protected boolean isFinished() {
if (timer.get() >= seconds)