2019-07-07 14:04:30 -06:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* 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. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2019-08-03 18:56:15 -06:00
|
|
|
package frc4388.robot.commands;
|
2019-07-07 14:04:30 -06:00
|
|
|
|
|
|
|
|
import edu.wpi.first.wpilibj.command.Command;
|
2019-08-03 18:56:15 -06:00
|
|
|
import frc4388.robot.Robot;
|
2019-07-07 14:04:30 -06:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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.m_subsystem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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() {
|
|
|
|
|
}
|
|
|
|
|
}
|