X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FShiftGearManipulatorPistonHigh.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FShiftGearManipulatorPistonHigh.java;h=a16d4d774fb779b1a1204561b1789404fd7e78af;hp=0000000000000000000000000000000000000000;hb=f74d236db406193b851bff99e4daec7b7abf35e7;hpb=8275a069e1891bd27156dcd947a897519c42a3a3 diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/ShiftGearManipulatorPistonHigh.java b/src/org/usfirst/frc/team3501/robot/commands/driving/ShiftGearManipulatorPistonHigh.java new file mode 100644 index 0000000..a16d4d7 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/ShiftGearManipulatorPistonHigh.java @@ -0,0 +1,40 @@ +package org.usfirst.frc.team3501.robot.commands.driving; + +import org.usfirst.frc.team3501.robot.Robot; +import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; + +import edu.wpi.first.wpilibj.command.Command; + +public class ShiftGearManipulatorPistonHigh extends Command { + private DriveTrain driveTrain = Robot.getDriveTrain(); + + public ShiftGearManipulatorPistonHigh() { + } + + @Override + protected void initialize() { + + } + + @Override + protected void execute() { + driveTrain.extendGearManipulatorPiston(); + } + + // Make this return true when this Command no longer needs to run execute() + @Override + protected boolean isFinished() { + return true; + } + + // 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() { + } +}