From: Meryem Esa Date: Mon, 15 Feb 2016 01:40:53 +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=41f93111749962b7270469ca22db43caf37599bb 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 909bd9d8..a613da8e 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java @@ -46,9 +46,8 @@ public class TurnForTime extends Command { if (direction == Direction.RIGHT) { Robot.driveTrain.drive(speed, -speed); - ; } else if (direction == Direction.LEFT) { - Robot.driveTrain.setMotorSpeeds(-speed, speed); + Robot.driveTrain.drive(-speed, speed); } }