This commit is contained in:
samuel desharnais 2023-03-21 18:23:18 -04:00
parent 5916701726
commit d3e305c11a
2 changed files with 6 additions and 5 deletions

View File

@ -7,9 +7,6 @@ package frc.robot.commands;
import java.util.function.DoubleSupplier;
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.BasePilotable;
@ -38,7 +35,9 @@ public class Avancer extends CommandBase {
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
public void end(boolean interrupted) {
basePilotable.drive(0,0);
}
// Returns true when the command should end.
@Override

View File

@ -35,7 +35,9 @@ public class Reculer extends CommandBase {
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
public void end(boolean interrupted) {
basePilotable.drive(0,0);
}
// Returns true when the command should end.
@Override