From 41f93111749962b7270469ca22db43caf37599bb Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sun, 14 Feb 2016 17:40:53 -0800 Subject: [PATCH] change code that used setMotorSpeeds method to drive method --- .../frc/team3501/robot/commands/driving/TurnForTime.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } } -- 2.30.2