From f08a2eefbc6c5fd2dc62ff2f964d0d3e3def98d4 Mon Sep 17 00:00:00 2001 From: Yamini Adusumelli Date: Sat, 30 Jan 2016 10:45:37 -0800 Subject: [PATCH] add method stub isBallInside to check and return presence of ball --- .../frc/team3501/robot/subsystems/Shooter.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.30.2