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