From 232fcdecd3b6e0172e0567b2a278ea90659dd255 Mon Sep 17 00:00:00 2001 From: Jason Israilov Date: Sat, 10 Feb 2018 15:39:00 -0500 Subject: [PATCH] Removed example objects --- src/org/usfirst/frc/team4737/robot/Robot.java | 14 +++--- .../robot/commands/ExampleCommand.java | 48 ------------------- .../robot/subsystems/ExampleSubsystem.java | 23 --------- 3 files changed, 7 insertions(+), 78 deletions(-) delete mode 100644 src/org/usfirst/frc/team4737/robot/commands/ExampleCommand.java delete mode 100644 src/org/usfirst/frc/team4737/robot/subsystems/ExampleSubsystem.java diff --git a/src/org/usfirst/frc/team4737/robot/Robot.java b/src/org/usfirst/frc/team4737/robot/Robot.java index 3a178a5..df88036 100644 --- a/src/org/usfirst/frc/team4737/robot/Robot.java +++ b/src/org/usfirst/frc/team4737/robot/Robot.java @@ -12,9 +12,6 @@ import edu.wpi.first.wpilibj.command.Scheduler; import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; -import org.usfirst.frc.team4737.robot.commands.ExampleCommand; -import org.usfirst.frc.team4737.robot.subsystems.ExampleSubsystem; - /** * The VM is configured to automatically run this class, and to call the * functions corresponding to each mode, as described in the TimedRobot @@ -23,8 +20,10 @@ * project. */ public class Robot extends TimedRobot { - public static final ExampleSubsystem kExampleSubsystem - = new ExampleSubsystem(); + /* + * public static final ExampleSubsystem kExampleSubsystem = new + * ExampleSubsystem(); + */ public static OI m_oi; Command m_autonomousCommand; @@ -37,7 +36,7 @@ public class Robot extends TimedRobot { @Override public void robotInit() { m_oi = new OI(); - m_chooser.addDefault("Default Auto", new ExampleCommand()); + // m_chooser.addDefault("Default Auto", new ExampleCommand()); // chooser.addObject("My Auto", new MyAutoCommand()); SmartDashboard.putData("Auto mode", m_chooser); } @@ -64,7 +63,8 @@ public void disabledPeriodic() { * LabVIEW Dashboard, remove all of the chooser code and uncomment the * getString code to get the auto name from the text box below the Gyro * - *

You can add additional auto modes by adding additional commands to the + *

+ * You can add additional auto modes by adding additional commands to the * chooser code above (like the commented example) or additional comparisons * to the switch structure below with additional strings & commands. */ diff --git a/src/org/usfirst/frc/team4737/robot/commands/ExampleCommand.java b/src/org/usfirst/frc/team4737/robot/commands/ExampleCommand.java deleted file mode 100644 index d8e5616..0000000 --- a/src/org/usfirst/frc/team4737/robot/commands/ExampleCommand.java +++ /dev/null @@ -1,48 +0,0 @@ -/*----------------------------------------------------------------------------*/ -/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ -/* Open Source Software - may be modified and shared by FRC teams. The code */ -/* must be accompanied by the FIRST BSD license file in the root directory of */ -/* the project. */ -/*----------------------------------------------------------------------------*/ - -package org.usfirst.frc.team4737.robot.commands; - -import edu.wpi.first.wpilibj.command.Command; -import org.usfirst.frc.team4737.robot.Robot; - -/** - * An example command. You can replace me with your own command. - */ -public class ExampleCommand extends Command { - public ExampleCommand() { - // Use requires() here to declare subsystem dependencies - requires(Robot.kExampleSubsystem); - } - - // Called just before this Command runs the first time - @Override - protected void initialize() { - } - - // Called repeatedly when this Command is scheduled to run - @Override - protected void execute() { - } - - // Make this return true when this Command no longer needs to run execute() - @Override - protected boolean isFinished() { - return false; - } - - // Called once after isFinished returns true - @Override - protected void end() { - } - - // Called when another command which requires one or more of the same - // subsystems is scheduled to run - @Override - protected void interrupted() { - } -} diff --git a/src/org/usfirst/frc/team4737/robot/subsystems/ExampleSubsystem.java b/src/org/usfirst/frc/team4737/robot/subsystems/ExampleSubsystem.java deleted file mode 100644 index bd46496..0000000 --- a/src/org/usfirst/frc/team4737/robot/subsystems/ExampleSubsystem.java +++ /dev/null @@ -1,23 +0,0 @@ -/*----------------------------------------------------------------------------*/ -/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ -/* Open Source Software - may be modified and shared by FRC teams. The code */ -/* must be accompanied by the FIRST BSD license file in the root directory of */ -/* the project. */ -/*----------------------------------------------------------------------------*/ - -package org.usfirst.frc.team4737.robot.subsystems; - -import edu.wpi.first.wpilibj.command.Subsystem; - -/** - * An example subsystem. You can replace me with your own 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()); - } -}