Remove ExampleCommand and ExampleSubsystem
This commit is contained in:
parent
282a4a86a7
commit
69e7cddd45
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user