From d3e305c11ae5ec2975a4d573c77d163ee947f3d9 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Tue, 21 Mar 2023 18:23:18 -0400 Subject: [PATCH] dth --- src/main/java/frc/robot/commands/Avancer.java | 7 +++---- src/main/java/frc/robot/commands/Reculer.java | 4 +++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/commands/Avancer.java b/src/main/java/frc/robot/commands/Avancer.java index 0b94017..68c0200 100644 --- a/src/main/java/frc/robot/commands/Avancer.java +++ b/src/main/java/frc/robot/commands/Avancer.java @@ -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 diff --git a/src/main/java/frc/robot/commands/Reculer.java b/src/main/java/frc/robot/commands/Reculer.java index ecc904f..903b216 100644 --- a/src/main/java/frc/robot/commands/Reculer.java +++ b/src/main/java/frc/robot/commands/Reculer.java @@ -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