X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FTensionRightWinch.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FTensionRightWinch.java;h=1bf68cf822de7bdbdd0c5e19d4f2286f6f1a45e1;hb=d24e8611dc96b16cc613a0de54bde4e682a06ba2;hp=0000000000000000000000000000000000000000;hpb=510cff21b567a9d71b188b28081b716b9ea816cc;p=3501%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/commands/TensionRightWinch.java b/src/org/usfirst/frc/team3501/robot/commands/TensionRightWinch.java new file mode 100644 index 0000000..1bf68cf --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/TensionRightWinch.java @@ -0,0 +1,21 @@ +package org.usfirst.frc.team3501.robot.commands; + +public class TensionRightWinch extends CommandBase { + + private double speed; + + public TensionRightWinch(double speed) { + super("TensionRightWinch"); + requires(arm); + + this.speed = speed; + } + + protected void execute() { + arm.moveRight(speed); + } + + protected boolean isFinished() { + return true; + } +}