Commit | Line | Data |
---|---|---|
d24e8611 LH |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
3 | public class TensionLeftWinch extends CommandBase { | |
4 | ||
5 | private double speed; | |
6 | ||
7 | public TensionLeftWinch(double speed) { | |
8 | super("TensionLeftWinch"); | |
9 | requires(arm); | |
10 | ||
11 | this.speed = speed; | |
12 | } | |
13 | ||
14 | protected void execute() { | |
15 | arm.moveLeft(speed); | |
16 | } | |
17 | ||
18 | protected boolean isFinished() { | |
19 | return true; | |
20 | } | |
21 | } |