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();
+ }
}