From 91a15ff7e5c0604fb04f3ad2374b28caba38f28d Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Tue, 31 Oct 2023 18:16:02 -0400 Subject: [PATCH] Command lancer --- src/main/java/frc/robot/commands/Lancer.java | 13 ++++++++++--- src/main/java/frc/robot/subsystems/Lanceur.java | 7 +++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc/robot/commands/Lancer.java b/src/main/java/frc/robot/commands/Lancer.java index 78f7f6b..784b73d 100644 --- a/src/main/java/frc/robot/commands/Lancer.java +++ b/src/main/java/frc/robot/commands/Lancer.java @@ -19,15 +19,22 @@ public class Lancer extends CommandBase { // Called when the command is initially scheduled. @Override - public void initialize() {} + public void initialize() { + + lanceur.setPID(0, 0, 0); + } // Called every time the scheduler runs while the command is scheduled. @Override - public void execute() {} + public void execute() { + + lanceur.lancer(0); + } // Called once the command ends or is interrupted. @Override - public void end(boolean interrupted) {} + public void end(boolean interrupted) { + lanceur.lancer(0); } // Returns true when the command should end. @Override diff --git a/src/main/java/frc/robot/subsystems/Lanceur.java b/src/main/java/frc/robot/subsystems/Lanceur.java index 15ff030..c611a4b 100644 --- a/src/main/java/frc/robot/subsystems/Lanceur.java +++ b/src/main/java/frc/robot/subsystems/Lanceur.java @@ -29,8 +29,15 @@ public class Lanceur extends SubsystemBase { } + public void stop() { + + } + @Override public void periodic() { // This method will be called once per scheduler run } + + public void setPID(double d, double e, int i) { + } }