1 package org
.usfirst
.frc
.team3501
.robot
.commands
.scaler
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
4 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 public class ClampBar
extends Command
{
9 private double speed
= 0;
11 public ClampBar(double speed
) {
16 protected void initialize() {
17 setTimeout(Constants
.Scaler
.SECONDS_TO_CLAMP
);
18 Robot
.scaler
.runWinch(this.speed
);
22 protected void execute() {
26 protected boolean isFinished() {
31 protected void end() {
32 Robot
.scaler
.runWinch(0);
36 protected void interrupted() {