9e9fbc1ba621913747c3d3225a62623aad8ca9ea
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.scaler
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
7 public class ClampBar
extends Command
{
8 private double secondsToClamp
= 2.0; // seconds for the winch to run in order
9 // for it to clamp(requires testing)
10 private double winchSpeed
= 0.5; // requires testing
16 protected void initialize() {
17 setTimeout(secondsToClamp
);
18 Robot
.scaler
.runWinch(winchSpeed
);
22 protected void execute() {
26 protected boolean isFinished() {
31 protected void end() {
32 Robot
.scaler
.runWinch(0);
36 protected void interrupted() {