Commit | Line | Data |
---|---|---|
1 | package org.usfirst.frc.team3501.robot.commands; | |
2 | ||
3 | import org.usfirst.frc.team3501.bases.Command; | |
4 | ||
5 | public class TensionLeftWinch extends Command { | |
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 | } |