From 92d45f351abffcf0fbe08484f0eec4edd077c4cd Mon Sep 17 00:00:00 2001 From: Rohan Rodrigues Date: Thu, 2 Mar 2017 16:36:54 -0800 Subject: [PATCH] Add timer for pistons --- .../robot/commands/shooter/RunIndexWheelContinuous.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java index da3fee1..34c7e0b 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -3,6 +3,7 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import org.usfirst.frc.team3501.robot.Robot; import org.usfirst.frc.team3501.robot.subsystems.Shooter; +import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.command.Command; /** @@ -19,6 +20,7 @@ import edu.wpi.first.wpilibj.command.Command; */ public class RunIndexWheelContinuous extends Command { private Shooter shooter = Robot.getShooter(); + private Timer t = new Timer(); /** * See JavaDoc comment in class for details @@ -33,6 +35,7 @@ public class RunIndexWheelContinuous extends Command { // Called just before this Command runs the first time @Override protected void initialize() { + t.reset(); } // Called repeatedly when this Command is scheduled to run -- 2.30.2