From: Yamini Adusumelli Date: Sat, 30 Jan 2016 18:45:37 +0000 (-0800) Subject: add method stub isBallInside to check and return presence of ball X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=f08a2eefbc6c5fd2dc62ff2f964d0d3e3def98d4 add method stub isBallInside to check and return presence of ball --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index ec373175..c2fa77c0 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -28,6 +28,18 @@ public class Shooter extends Subsystem { return shooter.get(); } + /*** + * This method checks to see if the ball has successfully passed through the + * intake rollers and is inside. + * + * @return whether the presence of the ball is true or false and returns the + * state of the condition (true or false). + */ + + public boolean isBallInside() { + return true; + } + public void setSpeed(double speed) { if (speed > 1.0) shooter.set(1.0);