From: Meryem Esa Date: Mon, 15 Feb 2016 01:38:06 +0000 (-0800) Subject: change code that used setMotorSpeeds method to drive method X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=18cfb6d88a655cfe560a4eec6be195724c9e8f3a change code that used setMotorSpeeds method to drive method --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java index 6401fb14..909bd9d8 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java @@ -45,7 +45,8 @@ public class TurnForTime extends Command { timer.start(); if (direction == Direction.RIGHT) { - Robot.driveTrain.setMotorSpeeds(speed, -speed); + Robot.driveTrain.drive(speed, -speed); + ; } else if (direction == Direction.LEFT) { Robot.driveTrain.setMotorSpeeds(-speed, speed); } @@ -63,7 +64,7 @@ public class TurnForTime extends Command { @Override protected void end() { - Robot.driveTrain.setMotorSpeeds(0, 0); + Robot.driveTrain.drive(0, 0); } @Override