From: Rohan Rodrigues Date: Fri, 3 Mar 2017 00:36:54 +0000 (-0800) Subject: Add timer for pistons X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=92d45f351abffcf0fbe08484f0eec4edd077c4cd Add timer for pistons --- 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