X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;h=23db318cedcf233020e81f98e98707739c88ec5a;hb=d8c69f61302658925d597be59bbca3794bce9fd4;hp=426063628b9b5cd45a0e59f656f474aaa0c902c1;hpb=fa4e4a97c3d02f50857995d23f68456a74cb7365;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 4260636..23db318 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -40,10 +40,51 @@ public class DriveTrain extends Subsystem { return driveTrain; } - public void setMotorSpeeds(double left, double right) { + // DRIVE METHODS + public void setMotorValues(double left, double right) { robotDrive.tankDrive(left, right); } + public void joystickDrive(double left, double right) { + robotDrive.tankDrive(left, right); + } + + public void stop() { + setMotorValues(0, 0); + } + + public double getFrontLeftMotorVal() { + return frontLeft.get(); + } + + public double getFrontRightMotorVal() { + return frontRight.get(); + } + + public double getRearLeftMotorVal() { + return frontLeft.get(); + } + + public double getRearRightMotorVal() { + return frontLeft.get(); + } + + public CANTalon getFrontLeft() { + return frontLeft; + } + + public CANTalon getFrontRight() { + return frontRight; + } + + public CANTalon getRearLeft() { + return rearLeft; + } + + public CANTalon getRearRight() { + return rearRight; + } + // ENCODER METHODS public double getLeftEncoder() {