X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;h=4bbda0fb1168a8ef9e490d356c771e5f08626779;hb=5483fde92e93a81b148371eb4eb9f69c44a7d591;hp=5389b235380b3a081a6c9c7b34b4e1b72b93edfe;hpb=b06733de632ce2ee4f986f89617940757fee9718;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 5389b23..4bbda0f 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -1,6 +1,7 @@ package org.usfirst.frc.team3501.robot.subsystems; import org.usfirst.frc.team3501.robot.Constants; +import org.usfirst.frc.team3501.robot.commands.driving.JoystickDrive; import com.ctre.CANTalon; @@ -46,8 +47,8 @@ public class DriveTrain extends Subsystem { robotDrive.tankDrive(left, right); } - public void joystickDrive(final double left, final double right) { - robotDrive.tankDrive(left, right); + public void joystickDrive(final double thrust, final double twist) { + robotDrive.arcadeDrive(thrust, twist); } public void stop() { @@ -119,6 +120,7 @@ public class DriveTrain extends Subsystem { @Override protected void initDefaultCommand() { + setDefaultCommand(new JoystickDrive()); } }