package org.usfirst.frc.team3501.robot.commands.driving;
+import org.usfirst.frc.team3501.robot.OI;
import org.usfirst.frc.team3501.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
protected void execute() {
double k = (Robot.driveTrain.isFlipped() ? -1 : 1);
// IDK why but the joystick gives positive values for pulling backwards
- double left = -Robot.oi.leftJoystick.getY();
- double right = -Robot.oi.rightJoystick.getY();
+ double left = -OI.leftJoystick.getY();
+ double right = -OI.rightJoystick.getY();
Robot.driveTrain.drive(left * k, right * k);
}