X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FStop.java;h=675f9a90b3af362e4225a0af3589a188b4dd83d2;hp=dc1343948d494575030477fd7b80a2e3467cc87e;hb=33141cddfe931d276b0068687c9bac25f29f8ba5;hpb=cb5ed50df54d254d02fbce44d2b37ca32b74ea69 diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/Stop.java b/src/org/usfirst/frc/team3501/robot/commands/driving/Stop.java index dc134394..675f9a90 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/Stop.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/Stop.java @@ -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(); + } }