diff --git a/src/org/usfirst/frc/team2059/robot/OI.java b/src/org/usfirst/frc/team2059/robot/OI.java index 2bf01b0..2aedf35 100644 --- a/src/org/usfirst/frc/team2059/robot/OI.java +++ b/src/org/usfirst/frc/team2059/robot/OI.java @@ -1,6 +1,5 @@ package org.usfirst.frc.team2059.robot; import edu.wpi.first.wpilibj.buttons.Button; -import org.usfirst.frc.team2059.robot.commands.ExampleCommand; /** * This class is the glue that binds the controls on the physical operator * interface to the commands and command groups that allow control of the robot. @@ -28,4 +27,4 @@ public class OI { // until it is finished as determined by it's isFinished method. // button.whenReleased(new ExampleCommand()); } -// vim: sw=2:ts=2:sts=2 \ No newline at end of file +// vim: sw=2:ts=2:sts=2 diff --git a/src/org/usfirst/frc/team2059/robot/Robot.java b/src/org/usfirst/frc/team2059/robot/Robot.java index 03431b5..fd36121 100644 --- a/src/org/usfirst/frc/team2059/robot/Robot.java +++ b/src/org/usfirst/frc/team2059/robot/Robot.java @@ -3,8 +3,6 @@ import edu.wpi.first.wpilibj.IterativeRobot; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.command.Scheduler; import edu.wpi.first.wpilibj.livewindow.LiveWindow; -import org.usfirst.frc.team2059.robot.commands.ExampleCommand; -import org.usfirst.frc.team2059.robot.subsystems.ExampleSubsystem; import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** @@ -15,7 +13,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; * directory. */ public class Robot extends IterativeRobot { - public static final ExampleSubsystem exampleSubsystem = new ExampleSubsystem(); public static OI oi; Command autonomousCommand; SendableChooser chooser; @@ -26,7 +23,6 @@ public class Robot extends IterativeRobot { public void robotInit() { oi = new OI(); chooser = new SendableChooser(); - chooser.addDefault("Default Auto", new ExampleCommand()); // chooser.addObject("My Auto", new MyAutoCommand()); SmartDashboard.putData("Auto mode", chooser); } diff --git a/src/org/usfirst/frc/team2059/robot/commands/ExampleCommand.java b/src/org/usfirst/frc/team2059/robot/commands/ExampleCommand.java deleted file mode 100644 index a5cd459..0000000 --- a/src/org/usfirst/frc/team2059/robot/commands/ExampleCommand.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.usfirst.frc.team2059.robot.commands; -import edu.wpi.first.wpilibj.command.Command; -import org.usfirst.frc.team2059.robot.Robot; -/** - * - */ -public class ExampleCommand extends Command { - public ExampleCommand() { - // Use requires() here to declare subsystem dependencies - requires(Robot.exampleSubsystem); - } - // Called just before this Command runs the first time - protected void initialize() { - } - // Called repeatedly when this Command is scheduled to run - protected void execute() { - } - // Make this return true when this Command no longer needs to run execute() - protected boolean isFinished() { - return false; - } - // Called once after isFinished returns true - protected void end() { - } - // Called when another command which requires one or more of the same - // subsystems is scheduled to run - protected void interrupted() { - } -} -// vim: sw=2:ts=2:sts=2 \ No newline at end of file diff --git a/src/org/usfirst/frc/team2059/robot/subsystems/ExampleSubsystem.java b/src/org/usfirst/frc/team2059/robot/subsystems/ExampleSubsystem.java deleted file mode 100644 index 8c9000e..0000000 --- a/src/org/usfirst/frc/team2059/robot/subsystems/ExampleSubsystem.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.usfirst.frc.team2059.robot.subsystems; -import edu.wpi.first.wpilibj.command.Subsystem; -/** - * - */ -public class ExampleSubsystem extends Subsystem { - // Put methods for controlling this subsystem - // here. Call these from Commands. - public void initDefaultCommand() { - // Set the default command for a subsystem here. - //setDefaultCommand(new MySpecialCommand()); - } -} -// vim: sw=2:ts=2:sts=2 \ No newline at end of file