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=328209e5d82a9f87149130d4657c1938f3508d6a;hb=e4082bee56fa6cbcbaa062d17ae17c280dec40c5;hp=32ec7b221ab237ef17747dfa46f47f8246ace31b;hpb=a6695a850d7f394734c77d75008774ce97063267;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 32ec7b2..328209e 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -165,26 +165,33 @@ 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() { - changeGear(Constants.DriveTrain.HIGH_GEAR); + public void setHighGear(DoubleSolenoid p) { + changeGear(Constants.DriveTrain.HIGH_GEAR, p); } /* * Changes the ball shift gear assembly to low */ - public void setLowGear() { - changeGear(Constants.DriveTrain.LOW_GEAR); + public void setLowGear(DoubleSolenoid p) { + changeGear(Constants.DriveTrain.LOW_GEAR, p); } /* * Changes the gear to a DoubleSolenoid.Value */ - private void changeGear(DoubleSolenoid.Value gear) { - leftGearPiston.set(gear); - rightGearPiston.set(gear); + private void changeGear(DoubleSolenoid.Value gear, DoubleSolenoid piston) { + piston.set(gear); } @Override