ee7cfc51841ce8f7892d1e008d34fcde2e7dbd46
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / ToggleFront.java
1 package org.usfirst.frc.team3501.robot.commands.driving;
2
3 import org.usfirst.frc.team3501.robot.Robot;
4
5 import edu.wpi.first.wpilibj.command.Command;
6
7 /**
8 *
9 */
10 public class ToggleFront extends Command {
11
12 public ToggleFront() {
13 requires(Robot.driveTrain);
14 }
15
16 // Called just before this Command runs the first time
17 @Override
18 protected void initialize() {
19 Robot.driveTrain.switchGear();
20 }
21
22 // Called repeatedly when this Command is scheduled to run
23 @Override
24 protected void execute() {
25 }
26
27 // Make this return true when this Command no longer needs to run execute()
28 @Override
29 protected boolean isFinished() {
30 return true;
31 }
32
33 // Called once after isFinished returns true
34 @Override
35 protected void end() {
36 }
37
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
40 @Override
41 protected void interrupted() {
42 }
43 }