From 376b38ae6954a5322bdfeda7d536221858357b51 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sat, 16 Jan 2016 17:35:41 -0800 Subject: [PATCH] add all Shooter commands --- .../frc/team3501/robot/commands/Aim.java | 36 +++++++++++++++++++ .../robot/commands/MoveBallToCradle.java | 36 +++++++++++++++++++ .../robot/commands/MoveIntakeArm.java | 36 +++++++++++++++++++ .../frc/team3501/robot/commands/Shoot.java | 36 +++++++++++++++++++ 4 files changed, 144 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/Aim.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/MoveBallToCradle.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/MoveIntakeArm.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/Shoot.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/Aim.java b/src/org/usfirst/frc/team3501/robot/commands/Aim.java new file mode 100755 index 00000000..22f511af --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/Aim.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class Aim extends Command { + + public Aim() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/MoveBallToCradle.java b/src/org/usfirst/frc/team3501/robot/commands/MoveBallToCradle.java new file mode 100755 index 00000000..c869be5a --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/MoveBallToCradle.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class MoveBallToCradle extends Command { + + public MoveBallToCradle() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/MoveIntakeArm.java b/src/org/usfirst/frc/team3501/robot/commands/MoveIntakeArm.java new file mode 100755 index 00000000..53e4c249 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/MoveIntakeArm.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class MoveIntakeArm extends Command { + + public MoveIntakeArm() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} diff --git a/src/org/usfirst/frc/team3501/robot/commands/Shoot.java b/src/org/usfirst/frc/team3501/robot/commands/Shoot.java new file mode 100755 index 00000000..7b424667 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/Shoot.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class Shoot extends Command { + + public Shoot() { + // Use requires() here to declare subsystem dependencies + // eg. requires(chassis); + } + + // Called just before this Command runs the first time + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + protected void execute() { + } + + // Make this return true when this Command no longer needs to run execute() + protected boolean isFinished() { + return false; + } + + // Called once after isFinished returns true + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + protected void interrupted() { + } +} -- 2.30.2