From: Cindy Zhang Date: Fri, 7 Oct 2016 05:41:36 +0000 (-0700) Subject: added negative signs to fix reversed driving X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=refs%2Fheads%2Fmeryem%2Fsacramento added negative signs to fix reversed driving --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java b/src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java index 8f8a4f25..579942f5 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java @@ -23,7 +23,7 @@ public class JoystickDrive extends Command { double thrust = Robot.oi.leftJoystick.getY(); double twist = Robot.oi.leftJoystick.getTwist(); - Robot.driveTrain.joystickDrive(thrust, twist); + Robot.driveTrain.joystickDrive(-thrust, -twist); } @Override