Remove ExampleCommand and ExampleSubsystem

This commit is contained in:
Austen Adler 2016-07-20 15:33:32 -04:00
parent 282a4a86a7
commit 69e7cddd45
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
4 changed files with 1 additions and 50 deletions

View File

@ -1,6 +1,5 @@
package org.usfirst.frc.team2059.robot; package org.usfirst.frc.team2059.robot;
import edu.wpi.first.wpilibj.buttons.Button; 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 * 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. * interface to the commands and command groups that allow control of the robot.

View File

@ -3,8 +3,6 @@ import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler; import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow; 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.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/** /**
@ -15,7 +13,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
* directory. * directory.
*/ */
public class Robot extends IterativeRobot { public class Robot extends IterativeRobot {
public static final ExampleSubsystem exampleSubsystem = new ExampleSubsystem();
public static OI oi; public static OI oi;
Command autonomousCommand; Command autonomousCommand;
SendableChooser chooser; SendableChooser chooser;
@ -26,7 +23,6 @@ public class Robot extends IterativeRobot {
public void robotInit() { public void robotInit() {
oi = new OI(); oi = new OI();
chooser = new SendableChooser(); chooser = new SendableChooser();
chooser.addDefault("Default Auto", new ExampleCommand());
// chooser.addObject("My Auto", new MyAutoCommand()); // chooser.addObject("My Auto", new MyAutoCommand());
SmartDashboard.putData("Auto mode", chooser); SmartDashboard.putData("Auto mode", chooser);
} }

View File

@ -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

View File

@ -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