package org.usfirst.frc.team3501.robot.commands.driving;
-import org.usfirst.frc.team3501.robot.Constants.DeadReckoning;
+import org.usfirst.frc.team3501.robot.Constants;
import org.usfirst.frc.team3501.robot.Constants.Direction;
import org.usfirst.frc.team3501.robot.Robot;
}
public TurnForTime(double seconds, Direction direction) {
- this(seconds, direction, DeadReckoning.DEFAULT_SPEED);
+ this(seconds, direction, Constants.Auton.DEFAULT_SPEED);
}
@Override
timer.start();
if (direction == Direction.RIGHT) {
- Robot.driveTrain.drive(speed, -speed);
+ // Robot.driveTrain.drive(speed, -speed);
+ Robot.driveTrain.arcadeDrive(0, speed);
} else if (direction == Direction.LEFT) {
- Robot.driveTrain.drive(-speed, speed);
+ // Robot.driveTrain.drive(-speed, speed);
+ Robot.driveTrain.arcadeDrive(0, speed);
}
}
@Override
protected void interrupted() {
+ end();
}
}