Add pid subsystem
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / Stop.java
index dc1343948d494575030477fd7b80a2e3467cc87e..675f9a90b3af362e4225a0af3589a188b4dd83d2 100755 (executable)
@@ -1,30 +1,34 @@
 package org.usfirst.frc.team3501.robot.commands.driving;
 
+import org.usfirst.frc.team3501.robot.Robot;
+
 import edu.wpi.first.wpilibj.command.Command;
 
 public class Stop extends Command {
 
-       public Stop() {
-       }
+  public Stop() {
+  }
 
-       @Override
-       protected void initialize() {
-       }
+  @Override
+  protected void initialize() {
+    Robot.driveTrain.stop();
+  }
 
-       @Override
-       protected void execute() {
-       }
+  @Override
+  protected void execute() {
+  }
 
-       @Override
-       protected boolean isFinished() {
-               return false;
-       }
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
 
-       @Override
-       protected void end() {
-       }
+  @Override
+  protected void end() {
+  }
 
-       @Override
-       protected void interrupted() {
-       }
+  @Override
+  protected void interrupted() {
+    end();
+  }
 }