From f8a525cbeb49dbf8e4998ce326fa788142975f26 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Mon, 4 Dec 2023 19:47:28 -0500 Subject: [PATCH] ghvnbm --- src/main/java/frc/robot/RobotContainer.java | 2 +- src/main/java/frc/robot/commands/Lancer.java | 3 ++- src/main/java/frc/robot/commands/LancerTest.java | 4 +++- src/main/java/frc/robot/commands/Lancez.java | 5 +++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 9f25d03..9df979c 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -15,7 +15,7 @@ import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import edu.wpi.first.wpilibj2.command.button.CommandJoystick; import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import frc.robot.commands.Avancer; -import frc.robot.commands.Lancer; +//import frc.robot.commands.Lancer; import frc.robot.commands.LancerTest; import frc.robot.commands.Force2; import frc.robot.commands.Force3; diff --git a/src/main/java/frc/robot/commands/Lancer.java b/src/main/java/frc/robot/commands/Lancer.java index f72cbf7..90c6fa8 100644 --- a/src/main/java/frc/robot/commands/Lancer.java +++ b/src/main/java/frc/robot/commands/Lancer.java @@ -1,7 +1,7 @@ // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. - +/* package frc.robot.commands; import edu.wpi.first.networktables.GenericEntry; @@ -27,3 +27,4 @@ public class Lancer extends ParallelCommandGroup { new AccAvancer(accumulateur),new AccReculer(accumulateur)); } } +*/ \ No newline at end of file diff --git a/src/main/java/frc/robot/commands/LancerTest.java b/src/main/java/frc/robot/commands/LancerTest.java index 95eaeb0..3c8a6d4 100644 --- a/src/main/java/frc/robot/commands/LancerTest.java +++ b/src/main/java/frc/robot/commands/LancerTest.java @@ -18,7 +18,9 @@ public class LancerTest extends CommandBase { // Called when the command is initially scheduled. @Override - public void initialize() {} + public void initialize() { + lanceur.setPID(0.000000000000075572, 0, 0); + } // Called every time the scheduler runs while the command is scheduled. @Override diff --git a/src/main/java/frc/robot/commands/Lancez.java b/src/main/java/frc/robot/commands/Lancez.java index e45d955..ef3d3a7 100644 --- a/src/main/java/frc/robot/commands/Lancez.java +++ b/src/main/java/frc/robot/commands/Lancez.java @@ -1,7 +1,7 @@ // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. - +/* package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; @@ -9,7 +9,7 @@ import frc.robot.subsystems.Lanceur; public class Lancez extends CommandBase { private Lanceur lanceur; - /** Creates a new Lancez. */ + /** Creates a new Lancez. public Lancez(Lanceur lanceur) { this.lanceur = lanceur; addRequirements(lanceur); @@ -43,3 +43,4 @@ public class Lancez extends CommandBase { return false; } } +*/ \ No newline at end of file