From 962daa72b4d2ccabd19828bfaa9b149b3306255b Mon Sep 17 00:00:00 2001 From: Rohan Rodrigues Date: Thu, 2 Mar 2017 16:39:43 -0800 Subject: [PATCH] Add piston getters in Shooter --- .../frc/team3501/robot/subsystems/Shooter.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index 820bc6a..445584a 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -177,4 +177,20 @@ public class Shooter extends Subsystem { } return false; } + + public Value getPistonValue() { + return piston.get(); + } + + public void setHighGear() { + changeGear(Constants.Shooter.HIGH_GEAR); + } + + public void setLowGear() { + changeGear(Constants.Shooter.LOW_GEAR); + } + + private void changeGear(DoubleSolenoid.Value gear) { + piston.set(gear); + } } -- 2.30.2