X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;h=bad303aebe622f0db77aa8a41d45e79b92c68325;hb=b6c65122a978685703718a9d0f1d8ee012cbf9c8;hp=10bc4450fa9c2f41421541d9f43e808ac1d27922;hpb=6b2fc22f2340904faee55cf5c84c57f59188f1d9;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 10bc445..bad303a 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -170,33 +170,26 @@ public class DriveTrain extends Subsystem { return rightGearPiston.get(); } - public DoubleSolenoid getLeftPiston() { - return this.leftGearPiston; - } - - public DoubleSolenoid getRightPiston() { - return this.rightGearPiston; - } - /* * Changes the ball shift gear assembly to high */ - public void setHighGear(DoubleSolenoid p) { - changeGear(Constants.DriveTrain.HIGH_GEAR, p); + public void setHighGear() { + changeGear(Constants.DriveTrain.HIGH_GEAR); } /* * Changes the ball shift gear assembly to low */ - public void setLowGear(DoubleSolenoid p) { - changeGear(Constants.DriveTrain.LOW_GEAR, p); + public void setLowGear() { + changeGear(Constants.DriveTrain.LOW_GEAR); } /* * Changes the gear to a DoubleSolenoid.Value */ - private void changeGear(DoubleSolenoid.Value gear, DoubleSolenoid piston) { - piston.set(gear); + private void changeGear(DoubleSolenoid.Value gear) { + leftGearPiston.set(gear); + rightGearPiston.set(gear); } @Override