From 00b68bad31898279895d323efad86393d71e6921 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 16 Jan 2016 17:10:02 -0800 Subject: [PATCH] add all Scaler commands --- .../frc/team3501/robot/commands/ClampBar.java | 36 +++++++++++++++++++ .../team3501/robot/commands/ExtendLift.java | 36 +++++++++++++++++++ .../team3501/robot/commands/LiftRobot.java | 36 +++++++++++++++++++ .../team3501/robot/commands/RetractLift.java | 36 +++++++++++++++++++ 4 files changed, 144 insertions(+) create mode 100755 src/org/usfirst/frc/team3501/robot/commands/ClampBar.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/ExtendLift.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/LiftRobot.java create mode 100755 src/org/usfirst/frc/team3501/robot/commands/RetractLift.java diff --git a/src/org/usfirst/frc/team3501/robot/commands/ClampBar.java b/src/org/usfirst/frc/team3501/robot/commands/ClampBar.java new file mode 100755 index 00000000..44648a07 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/ClampBar.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class ClampBar extends Command { + + public ClampBar() { + // 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/ExtendLift.java b/src/org/usfirst/frc/team3501/robot/commands/ExtendLift.java new file mode 100755 index 00000000..b32f0cbd --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/ExtendLift.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class ExtendLift extends Command { + + public ExtendLift() { + // 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/LiftRobot.java b/src/org/usfirst/frc/team3501/robot/commands/LiftRobot.java new file mode 100755 index 00000000..dc316320 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/LiftRobot.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class LiftRobot extends Command { + + public LiftRobot() { + // 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/RetractLift.java b/src/org/usfirst/frc/team3501/robot/commands/RetractLift.java new file mode 100755 index 00000000..92cc6d40 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/RetractLift.java @@ -0,0 +1,36 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Command; + +/** + * + */ +public class RetractLift extends Command { + + public RetractLift() { + // 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