2019-12-20 12:53:02 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-01-05 18:59:50 -07:00
|
|
|
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
|
2019-12-20 12:53:02 -07:00
|
|
|
/* 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 frc4388.robot.commands.Drive;
|
|
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
import edu.wpi.first.wpilibj2.command.CommandBase;
|
2019-12-20 12:53:02 -07:00
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
import frc4388.robot.subsystems.Drive;
|
2019-12-20 12:53:02 -07:00
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
public class GamerMove extends CommandBase {
|
|
|
|
|
|
|
|
|
|
private final Drive m_drive;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates a new GamerMove.
|
|
|
|
|
*/
|
|
|
|
|
public GamerMove(Drive subsystem) {
|
|
|
|
|
m_drive = subsystem;
|
|
|
|
|
addRequirements(m_drive);
|
2019-12-20 12:53:02 -07:00
|
|
|
}
|
|
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
// Called when the command is initially scheduled.
|
2019-12-20 12:53:02 -07:00
|
|
|
@Override
|
2020-01-05 18:59:50 -07:00
|
|
|
public void initialize() {
|
2019-12-20 12:53:02 -07:00
|
|
|
}
|
|
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
// Called every time the scheduler runs while the command is scheduled.
|
2019-12-20 12:53:02 -07:00
|
|
|
@Override
|
2020-01-05 18:59:50 -07:00
|
|
|
public void execute() {
|
|
|
|
|
m_drive.driveWithInput(0, 1);
|
2019-12-20 12:53:02 -07:00
|
|
|
}
|
|
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
// Called once the command ends or is interrupted.
|
2019-12-20 12:53:02 -07:00
|
|
|
@Override
|
2020-01-05 18:59:50 -07:00
|
|
|
public void end(boolean interrupted) {
|
2019-12-20 12:53:02 -07:00
|
|
|
}
|
|
|
|
|
|
2020-01-05 18:59:50 -07:00
|
|
|
// Returns true when the command should end.
|
2019-12-20 12:53:02 -07:00
|
|
|
@Override
|
2020-01-05 18:59:50 -07:00
|
|
|
public boolean isFinished() {
|
|
|
|
|
return false;
|
2019-12-20 12:53:02 -07:00
|
|
|
}
|
|
|
|
|
}
|