1 package org
.usfirst
.frc
.team3501
.robot
.commands
.driving
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
10 public class ToggleGear
extends Command
{
13 requires(Robot
.driveTrain
);
16 // Called just before this Command runs the first time
18 protected void initialize() {
19 Robot
.driveTrain
.toggleFlipped();
22 // Called repeatedly when this Command is scheduled to run
24 protected void execute() {
27 // Make this return true when this Command no longer needs to run execute()
29 protected boolean isFinished() {
33 // Called once after isFinished returns true
35 protected void end() {
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
41 protected void interrupted() {