From 18cfb6d88a655cfe560a4eec6be195724c9e8f3a Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sun, 14 Feb 2016 17:38:06 -0800 Subject: [PATCH] change code that used setMotorSpeeds method to drive method --- .../frc/team3501/robot/commands/driving/TurnForTime.java | 5 +++-- 1 file changed, 3 insertions(+), 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 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 -- 2.30.2