From 763ccd44317c85b4e20b51250270606a25c1903a Mon Sep 17 00:00:00 2001 From: Meeta Date: Mon, 16 Jan 2017 20:02:09 -0800 Subject: [PATCH] create skeleton code for intake commands --- .../robot/commands/intake/RunContinuous.java | 45 +++++++++++++++++++ .../robot/commands/intake/RunIntake.java | 42 +++++++++++++++++ .../robot/commands/intake/StopIntake.java | 43 ++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java create mode 100644 src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java new file mode 100644 index 0000000..632c543 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java @@ -0,0 +1,45 @@ +package org.usfirst.frc.team3501.robot.commands.intake; + +import edu.wpi.first.wpilibj.command.Command; + +/*** + * + * Runs the intake continuously. + * + * @author Meeta + * + */ +public class RunContinuous extends Command { + + public RunContinuous() { + + } + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + + // Called just before this Command runs the first time + @Override + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + @Override + protected void execute() { + } + + // Called once after isFinished returns true + @Override + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + @Override + protected void interrupted() { + } + +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java new file mode 100644 index 0000000..f5f1002 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java @@ -0,0 +1,42 @@ +package org.usfirst.frc.team3501.robot.commands.intake; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + * Starts running the intake for a specific period of time that the user inputs. + * + * @author Meeta + */ +public class RunIntake extends Command { + public RunIntake(double timeToMove) { + + } + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + + // Called just before this Command runs the first time + @Override + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + @Override + protected void execute() { + } + + // Called once after isFinished returns true + @Override + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + @Override + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java new file mode 100644 index 0000000..6a2cc26 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java @@ -0,0 +1,43 @@ +package org.usfirst.frc.team3501.robot.commands.intake; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * Stops running the intake. + * + * @author Meeta + * + */ +public class StopIntake extends Command { + public StopIntake() { + + } + + // Called just before this Command runs the first time + @Override + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + @Override + protected void execute() { + } + + // Called once after isFinished returns true + @Override + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + @Override + protected void interrupted() { + } + + @Override + protected boolean isFinished() { + // TODO Auto-generated method stub + return false; + } + +} -- 2.30.2